DataGrid update problem

  • Thread starter Thread starter LinasB
  • Start date Start date
L

LinasB

Hi all,

I use DataGrid with DataView.AllowNew=False.
All works fine, when user changes data in DataGrid row and when he goes to
the next row, data flows to the database.
But sometimes DataGrid have only one record! And user can't leave the row
after changes.
How to update data to dataset without leaving row?

Thanks. LinasB
 
Because nobody knows, I write the solution.
It's simple.

DataGrid.CurrentRowIndex = 0

And after that you can update database.
 
Back
Top