Locating new row

  • Thread starter Thread starter Peter Morris
  • Start date Start date
P

Peter Morris

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top