Updating data in DataGridView

partham

Active member
Joined
Dec 27, 2005
Messages
41
Location
Kolkata, India
Programming Experience
10+
Dear Sir/Madam,

We are using VB.Net 2008.

We are using a DataGridView and its DataSource is a DataTable. Now, when we change the value in a particular cell, the change is not reflected till we tab out of the field. How do we resolve the same?

Thanks in advance.

Regards,
Partha
 
What actually happens is that an editing session is started when you begin typing or whatever and then that editing session ends when you leave the cell, at which point the new value is pushed down from the editing control to the cell. If you want to force that editing session to end without leaving the cell then you should bind your data to the grid through a BindingSource and then you can call its EndEdit method.
 
Back
Top