S
Shan1986
Guest
Hallo,
I have two data grid views and both are bound to same binding source with few columns hidden. I tried to sync the selection between the two data grid views and the binding source position according to selected row. I have a following code but it gives error sometimes. is there a better way?
Dim rowIndex As Integer = DataGridView1.SelectedRows(0).Cells("ID").Value
Dim BS_index As Integer = BS.Find("ID", rowIndex)
BS.Position = BS_index
Thanks
Continue reading...
I have two data grid views and both are bound to same binding source with few columns hidden. I tried to sync the selection between the two data grid views and the binding source position according to selected row. I have a following code but it gives error sometimes. is there a better way?
Dim rowIndex As Integer = DataGridView1.SelectedRows(0).Cells("ID").Value
Dim BS_index As Integer = BS.Find("ID", rowIndex)
BS.Position = BS_index
Thanks
Continue reading...