DataGridView temp store results in Leave()

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using a single grid to hold different categories of data on my form. I
store the data for each category in a list when the grid's Leave() function
is called and restore it when the Enter is called. However, the contents of
the last cell I edit are not recognized unless I move to another cell before
leaving the grid. Does anyone know why this is happening, or more
importantly, how to fix it?

Thanks,

Phil
 
Here is something to try. Before you try caching the values in the
Leave event code, try calling

BindingManagerBase bmb =
dataGridView1.BindingContext[dataGridView1.DataSource,
dataGridView1.DataMember];
bmb.EndCurrentEdit();

=================
Clay Burch
Syncfusion, Inc.
 

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