1 | initial version |
To make a row invisible in a datagridview, you can use the following code:
dataGridView.Rows[rowIndex].Visible = false;
Here, dataGridView
refers to the datagridview control and rowIndex
is the index of the row which you want to make invisible.
Setting the Visible
property of the row to false
will hide the row from the user's view. Note that the row will still exist in the datagridview's underlying data source and can be made visible again by modifying its Visible
property.