Question problem in set the Visible property of the first row of a datagridview to false

pooya1072

Well-known member
Joined
Jul 5, 2012
Messages
84
Programming Experience
Beginner
hi
i have a DataGridView in my form .its datasource is a DataTable .i want to set the first row's visible property to false
i use this command :
VB.NET:
dgv.CurrentCell = Nothing
dgv.Rows(0).Visible = False
program run without any error but the first row remain visible.
only this row has this problem . if i select another row and set visibility to false it;s not has any problem .
please help me about it .
 
Last edited:
Well, I can't reproduce it. I was actually just working on some code populating my dgv with a datatable so I decided to try it out and it works flawlessly.
 
Back
Top