llmclaughlin
Programmer
I have a dropdownlist in a gridview, there is no postback on it, but when the value gets changed and when I read the text value on submit for it, it's always the first item in the list.
The code below gets the text value, but always the first item in the dropdown.
Any suggestions how to get on the current index of control.
CType(Me.gvERM.Rows(k).FindControl("ddlFIELD"), DropDownList).Items(CType(Me.gvERM.Rows(k).FindControl("ddlFIELD"), DropDownList).SelectedIndex).Text
Thanks
Louie
The code below gets the text value, but always the first item in the dropdown.
Any suggestions how to get on the current index of control.
CType(Me.gvERM.Rows(k).FindControl("ddlFIELD"), DropDownList).Items(CType(Me.gvERM.Rows(k).FindControl("ddlFIELD"), DropDownList).SelectedIndex).Text
Thanks
Louie