datagridview and order of events

H

HSalim[MVP]

I have a datagridview bound at run-time to a Data Table.
I have code populating the Data Table. This works well.

I'm trying to understand the order of events on a datagridview. When I
append rows manually to the grid there seems to be a delay in when the data
is sent back to bound Data Table.

In summary:
form load - empty grid
button1.click - loads data into data table; (say 10 Rows)
Textbox1.text = table.Rows.Count.ToString - shows 10
DGV refreshed automatically

click on row11; enter data and tab to row 12
no change to textbox1

enter data in row 12 and tab through to row 13
textbox now shows 11

I have no code to move data back to the Data Table so the question is this:
why do I see this delay and how do I force it to flush changes to the data
table when I leave the row?

Thanks in advance for your advice
Habib
 
C

Cor Ligthert[MVP]

Habib,

Most often has a delay as reason an (internal) catched error. This is by
instance done by the IsDate what is in fact nothing more than that.

You can see that by playing with the debug options.

Cor
 

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