For C# Window Form, there is a tool called DataGridView.
If we use that to display data, it shows an extra line.
If we have 3 rows of data, it shows 4 rows. the 4th row is a blank row.
I wanna know how to disable it.. or hide it?
For C# Window Form, there is a tool called DataGridView.
If we use that to display data, it shows an extra line.
If we have 3 rows of data, it shows 4 rows. the 4th row is a blank row.
I wanna know how to disable it.. or hide it?
From your Project [Design] view click on the DataGridView1 and from the (Properties) set it like this:
-Or-
Use this code:
DataGridView1.Rows.RemoveAt(DataGridView1.CurrentCell.RowIndex);