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_P ositionChanged gets fired and also the
CurrentCellChan ged gets fired.
My problem is that, when the BindingSource_P ositionChanged fires, the
Me.DataGrid.Cur rentRow.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.Cur rentRow.Index still points to
row 2 and not 3.
Whats the point of using Me.DataGrid.Cur rentRow.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_P ositionChanged gets fired and also the
CurrentCellChan ged gets fired.
My problem is that, when the BindingSource_P ositionChanged fires, the
Me.DataGrid.Cur rentRow.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.Cur rentRow.Index still points to
row 2 and not 3.
Whats the point of using Me.DataGrid.Cur rentRow.Index when it is not the
value it really is?
Miro
Comment