G
Guest
Hi,
I am trying to check a value of a contril in my gridview but this %$%&^^&*
thing is driving me nuts.
I tried
Dim t As TextBox = CType(e.Row.Cells(16).FindControl("Status"), TextBox)
If t.text = "N" Then
e.Row.Cells(16).Controls(1).Visible = True
End If
This crap doesn't work. I get either Object not set to instance BS or can
cast from literal to system.web.ui crap.
The column is a template column with 2 controls, one label control and
another is a checkbox. I want to set the checkbox to visible only when the
label control says "N" and at the same time make the label contril visible =
flase.
Please assist.
Thanks
I am trying to check a value of a contril in my gridview but this %$%&^^&*
thing is driving me nuts.
I tried
Dim t As TextBox = CType(e.Row.Cells(16).FindControl("Status"), TextBox)
If t.text = "N" Then
e.Row.Cells(16).Controls(1).Visible = True
End If
This crap doesn't work. I get either Object not set to instance BS or can
cast from literal to system.web.ui crap.
The column is a template column with 2 controls, one label control and
another is a checkbox. I want to set the checkbox to visible only when the
label control says "N" and at the same time make the label contril visible =
flase.
Please assist.
Thanks