DataGrid update problem

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
 
L

LinasB

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

DataGrid.CurrentRowIndex = 0

And after that you can update database.
 

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

Top