I have a datagridview, and as soon as I populate the view with a data source, I hide the columns that I don't need. For some reason, the 1st column is not hidden. I checked the column name and they match, and the second row performs the column hiding perfectly for EVENTID. I even made messagebox.show (dgvTourOther.Columns ("OTHERID"). Name) and it returned the correct name.
dgvTourOther.Columns("OTHERID").Visible = False
dgvTourOther.Columns("EVENTID").Visible = False
Any idea what might cause a datagridview not to hide a column? It is like some other property is blocking this column.
The values passed are all strings. I do this on 3 other datagridviews normally, but for somereason this gridview acts differently. I will try to reorder the columns and see if this helps.
source
share