I
I
Ilya2013-11-18 07:48:10
User interface
Ilya, 2013-11-18 07:48:10

How to save changes in the database when entering data in the DataGrid ?

I am using Visual Studio 2010, MS SQL Server 2008. Created an xsd dataset. I display the data in the table from DataAdapter. But how can I change something in the DataGridView to write the changes immediately to the database (without additional buttons)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Teacher, 2013-11-18
@Teacher

Good afternoon.
The DataGridView has a wonderful RowValidated event which is called after the row is checked for validity. Usually, in the handler of this event, some post-processing of the entered data is performed, but no one forbids saving the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question