I'm using a datagridview in vb.net 2008 that is bound to a bindingsource.
In the form load event, I have tableadapter.fill method to load the data.
When the fill method is executed, the rowsadded event for the grid also fires.
However, the event doesn't fire for all rows returned from the fill method.
I've checked the bindingsource.count property to verify the number of records.
The correct number of rows are displayed in the grid, but the event doesn't fire for all the rows.
For example, there may be 4 rows displayed in the grid, but the rowsadded event only fires 2 times.
There are several calculated columns in the grid, but the columns are only calculated for the
number of rows that equal the number of times the rowsadded event is fired.
The other rows are empty for the calculated columns.
Does the rowsadded event always fire for each row?
Thanks,
DW
In the form load event, I have tableadapter.fill method to load the data.
When the fill method is executed, the rowsadded event for the grid also fires.
However, the event doesn't fire for all rows returned from the fill method.
I've checked the bindingsource.count property to verify the number of records.
The correct number of rows are displayed in the grid, but the event doesn't fire for all the rows.
For example, there may be 4 rows displayed in the grid, but the rowsadded event only fires 2 times.
There are several calculated columns in the grid, but the columns are only calculated for the
number of rows that equal the number of times the rowsadded event is fired.
The other rows are empty for the calculated columns.
Does the rowsadded event always fire for each row?
Thanks,
DW