K
K B
Hi, For each row in a gridview, I need to get the control type and the
value assigned. This used to work in DataGrid but now I get an
ArgumentOutofRange exception.
PLEASE HELP ME...
If i.Cells(4).Controls(0).GetType Is GetType(DropDownList) Then
sAnswer = CType(i.Cells(4).Controls(0), DropDownList).SelectedItem.Text
End If
Thanks,
Kit
value assigned. This used to work in DataGrid but now I get an
ArgumentOutofRange exception.
PLEASE HELP ME...
If i.Cells(4).Controls(0).GetType Is GetType(DropDownList) Then
sAnswer = CType(i.Cells(4).Controls(0), DropDownList).SelectedItem.Text
End If
Thanks,
Kit