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
Printable View
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
Does Session("YES_VC") actually contain the value 'yes'? Set a breakpoint and check its value.
the session is empty and will be 99% of the time.
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
This is why all coders should be smokers ;)