Error using FILL in DataGridView ver 2.2.2

Answered
0
0

Hi Team Wisej…

I am populating data in a DataGridView using FILL and I get error, the DGV does not contain the data in the rows, this happens in version 2.2.2… see attached images…
When I use DEBUG:

version 2.1.86
1- Fill
2- event CellValidating
3- event RowsAdded
4- Data OK
version 2.2.2
1- Fill
2- event RowsAdded
3-ERROR.. data with null rows, only the first row ok.

Regards

  • You must to post comments
Best Answer
0
0

What is the error exactly?

I tried Fill() and in RowsAdded I get the correct number of rows and I can access all the rows, which are all displayed.

If you inspect the inner list you will find null rows, which is correct. The rows in 2.2 are created on demand and when the grid is bound they are never created unless your application uses the row, in which case the specific row is created on demand.

Check the output window in debug and you will find:

“Created real row X”

as the rows are used by the app.

We are now able to handle unlimited rows (tested with 1M rows) with very little memory.

 

  • Jackie Cespedes
    In version 2.2.4 I checked it and now it’s ok …
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.