At the end of an information load the DataGrid
shows me some red lines.
Can you help me !!!?
If it is a topic in the number of records you could limit the number of lines that you read from the file, maybe iterate by 20 or 30 and stop doing so to see if this is shown in the grid. Or use a file of monkeys records to validate if it is a problem with the volume of data that loads
You could also define the grid to work on VirtualMode
in the link comments:
Virtual mode is designed for large data stores
Tutorial: Implement virtual mode in the Windows forms DataGridView control Forms
That usually indicates a memory problem.
Try loading less records. Does it really make sense to load more than 50000 records in a grid? That is unmanageable for the user.