So for one of my Windows Forms, I am using DataGridView control. I need to hide or remove some rows, because I want to show only the first 5 rows with the biggest result in the 3rd column.
I load my data from BinaryReader (DAT file). DataGridView shows my recorded data, but it loads all rows. I need only 5 rows.
DataGridView1.Row[].Visible = False
I tried with this one, but i got IndexOfOutRange exception. Any other solution ? Thanks in advance!