Click to See Complete Forum and Search --> : clear empty column in gridview


Diedtje
12-14-2005, 04:36 AM
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 you

Cipher
12-14-2005, 11:21 AM
Try this
If True Condition Then
GridView1.Columns(ColumnNumber).Visible = False
End If
Hope it helps;