Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > can any one check this code to refresh combobox
 

can any one check this code to refresh combobox

Private

 

Sub DataGridView1_CellValueChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles User_objectsDataGridView.CellValueChanged

 

Dim ColumnIndex As Integer

 

Dim indexvalue As Integer

 

 

If Me.Visible = True Then

ColumnIndex = User_objectsDataGridView.CurrentCell.ColumnIndex

MsgBox(User_objectsDataGridView.CurrentRow.Cells(2).Value)

 

If ColumnIndex = 1 Then

indexvalue = User_objectsDataGridView.CurrentRow.Cells(2).Value

User_objectsDataGridView.CurrentRow.Cells(2).Value = indexvalue

 

Else

 

Exit Sub

 

End If

 

End Sub

  • Moved byKarel ZikmundMSFTMonday, October 05, 2009 3:49 PMWinForms Q (From:Building Development and Diagnostic Tools for .Net)
  •  
RAOOFH  Monday, October 05, 2009 11:02 AM
What are you attempting to do with this code?

How is it not working for you?
www.insteptech.com ; msmvps.com/blogs/deborahk
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
DeborahK  Wednesday, October 07, 2009 12:31 AM

You can use google to search for other answers

Custom Search

More Threads

• add rows to bound datatable
• hi
• Sorting DataGridView
• DataGridView Font column
• Simple Data binding and report errors in business logic
• drag and drop on a bound DataGridView
• Borders for 2 rows
• binding certain rows of data?
• error on OleDbException
• Saving binary file data to SQL server