M
Miro
I don't seem to understand the timing of some events.
I have a datagridview bound to a binding source.
When I click on a different row within the datagridview, the
BindingSource_PositionChanged gets fired and also the
CurrentCellChanged gets fired.
My problem is that, when the BindingSource_PositionChanged fires, the
Me.DataGrid.CurrentRow.Index is still pointing to the old pointer.
For example I have 4 rows in the datagridview.
Row 1
Row 2 <- Cursor is here
Row 3 <-Cursor will be moved here
Row 4
When the cursor is moved, the Me.DataGrid.CurrentRow.Index still points to
row 2 and not 3.
Whats the point of using Me.DataGrid.CurrentRow.Index when it is not the
value it really is?
Miro
I have a datagridview bound to a binding source.
When I click on a different row within the datagridview, the
BindingSource_PositionChanged gets fired and also the
CurrentCellChanged gets fired.
My problem is that, when the BindingSource_PositionChanged fires, the
Me.DataGrid.CurrentRow.Index is still pointing to the old pointer.
For example I have 4 rows in the datagridview.
Row 1
Row 2 <- Cursor is here
Row 3 <-Cursor will be moved here
Row 4
When the cursor is moved, the Me.DataGrid.CurrentRow.Index still points to
row 2 and not 3.
Whats the point of using Me.DataGrid.CurrentRow.Index when it is not the
value it really is?
Miro