clear empty column in gridview

liunx

Guest
I have a gridview wich is populated from the DB. I have a colums named Type. Some products have different types, some don't. The products that don't will leave an empty column in my gridview. How do I code so that an empty column won't be visible. But the rest of the columns are?

thank youTry this
If True Condition Then
GridView1.Columns(ColumnNumber).Visible = False
End If
Hope it helps;
 
Back
Top