Revised question :-)
I found the row I have inserted, but when I do this
PropertyManager pm = (PropertyManager) BindingContext[MyDataGridView];
pm.Position = thatRow.Index;
The index is not updated. How can I set the active row index?
Thanks
This is a discussion on Locating new row - CSharp ; If I have a data source bound to my DataGridView, and then I perform an action that adds a new row to that datasource. How can I tell which row in the DataGridView to focus? I can't just select the ...
If I have a data source bound to my DataGridView, and then I perform an
action that adds a new row to that datasource. How can I tell which row in
the DataGridView to focus? I can't just select the last row because the
user may have chosen to sort by one of the numerous columns.
Thanks
Pete
Revised question :-)
I found the row I have inserted, but when I do this
PropertyManager pm = (PropertyManager) BindingContext[MyDataGridView];
pm.Position = thatRow.Index;
The index is not updated. How can I set the active row index?
Thanks
Try to set DataGridView.CurrentCell.
"Peter Morris" <support@NOdroopySPAMeyes.com> wrote in message
news:ut$HUTtAIHA.2268@TK2MSFTNGP02.phx.gbl...
> Revised question :-)
>
> I found the row I have inserted, but when I do this
>
> PropertyManager pm = (PropertyManager) BindingContext[MyDataGridView];
> pm.Position = thatRow.Index;
>
> The index is not updated. How can I set the active row index?
>
>
>
> Thanks
>
>