|
-
Feb 1st, 2006, 06:07 PM
#1
Thread Starter
Hyperactive Member
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:
If Session("YES_VC") = "Yes" Then
Me.dbgMemberInfo.Columns(7).Visible = True
Else
Me.dbgMemberInfo.Columns(7).Visible = False
End If
Last edited by texas; Feb 2nd, 2006 at 08:53 AM.
-
Feb 2nd, 2006, 04:41 AM
#2
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.
-
Feb 2nd, 2006, 08:42 AM
#3
Thread Starter
Hyperactive Member
Re: how to set a Datagrid column(x).visible = false
the session is empty and will be 99% of the time.
-
Feb 2nd, 2006, 08:52 AM
#4
Thread Starter
Hyperactive Member
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.
-
Feb 2nd, 2006, 12:10 PM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|