datagridview and order of events

  • Thread starter Thread starter HSalim[MVP]
  • Start date Start date
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
 
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
 
Back
Top