There can be two methods written in ItemDataBound: e.Item.Visible = false;
Or just write dgrd.Items [i] .Visible = false; i is the line you want to hide.
I am also a beginner and I do n’t know if I can help.
The method upstairs will do.
dgrd.Items [i] .Visible = false; use this when you know which line to hide,
Use dataview to filter rows that are not displayed when you know the hidden conditions
hide. . .
I think so. If you are using datasource = datatable method.
Then delete the datatable. datatable.Rows.RemoveAt (index)
Copy the datatable one before the operation for possible recovery.