Results 1 to 5 of 5

Thread: how to set a Datagrid column(x).visible = false (resolved)

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    how to set a Datagrid column(x).visible = false (resolved)

    depending on a session variable how can i set a column to visible?

    this is what i tried.
    VB Code:
    1. If Session("YES_VC") = "Yes" Then
    2.             Me.dbgMemberInfo.Columns(7).Visible = True
    3.         Else
    4.             Me.dbgMemberInfo.Columns(7).Visible = False
    5.         End If
    Last edited by texas; Feb 2nd, 2006 at 08:53 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: how to set a Datagrid column(x).visible = false

    Does Session("YES_VC") actually contain the value 'yes'? Set a breakpoint and check its value.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: how to set a Datagrid column(x).visible = false

    the session is empty and will be 99% of the time.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    Austin
    Posts
    397

    Re: how to set a Datagrid column(x).visible = false

    i was trying to set the columns for the wrong grid...

    --- this is why it's a good idea to get up and walk around from time to time
    Last edited by texas; Feb 2nd, 2006 at 08:56 AM.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: how to set a Datagrid column(x).visible = false (resolved)

    This is why all coders should be smokers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width