Template Column

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

Hello - I am wanting to programmatically turn the visibility of a
template column from false to true. The <asp:templateColumn has a
visibility property, but is has no "id" property. How can I reference
the entire column, heading and all and turn it off and on
programmatically?

Thanks in advance for your assistance!!!!!!!!!!
 
Hi,
How can I reference the entire column, heading and all and
turn it off and on programmatically?

You have to know the index of your template column, example
for first column:

' 0 is index of first column
myDataGrid.Colums(0).Visible = False

Cheers
 
Hi,
How can I reference the entire column, heading and all and
turn it off and on programmatically?

You have to know the index of your template column, example
for first column:

' 0 is index of first column
myDataGrid.Colums(0).Visible = True ' or False

Cheers
 
Back
Top