S
Savvoulidis Iordanis
Can I set the Enabled or Visible properties of the controls (textboxes,
checkboxes) displayed by default in edit mode, depending on the value of some
other column? Or must I convert the column to a template column first? What I
mean is, I can correctly get the value of the default textbox in a gridview
cell when edited, using:
s = CType(grd_users.Rows(index).Cells(4).Controls(0), TextBox).Text
but I can't set that textbox to disabled or hidden using
CType(grd_users.Rows(index).Cells(4).Controls(0), TextBox).enabled=false or
CType(grd_users.Rows(index).Cells(4).Controls(0), TextBox).visible=false
although I have intellisence for them.
The message I get is:
"Specified argument was out of the range of valid values. Parameter name:
index"
Why?
checkboxes) displayed by default in edit mode, depending on the value of some
other column? Or must I convert the column to a template column first? What I
mean is, I can correctly get the value of the default textbox in a gridview
cell when edited, using:
s = CType(grd_users.Rows(index).Cells(4).Controls(0), TextBox).Text
but I can't set that textbox to disabled or hidden using
CType(grd_users.Rows(index).Cells(4).Controls(0), TextBox).enabled=false or
CType(grd_users.Rows(index).Cells(4).Controls(0), TextBox).visible=false
although I have intellisence for them.
The message I get is:
"Specified argument was out of the range of valid values. Parameter name:
index"
Why?