Template Column

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim Heavey

    #1

    Template Column

    Hello - I am wanting to programmaticall y turn the visibility of a
    template column from false to true. The <asp:templateCo lumn 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
    programmaticall y?

    Thanks in advance for your assistance!!!!! !!!!!



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Maras

    #2
    Re: Template Column

    Hi,
    [color=blue]
    > How can I reference the entire column, heading and all and
    > turn it off and on programmaticall y?[/color]

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

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

    Cheers

    --
    Maras


    Comment

    • Maras

      #3
      Re: Template Column

      Hi,
      [color=blue]
      > How can I reference the entire column, heading and all and
      > turn it off and on programmaticall y?[/color]

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

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

      Cheers

      --
      Maras

      Comment

      Working...