Datagrid Dropdownlist unable to get value
I have a drop downlist with a yes or no value and it always defaults to the {0} index so my update does not work.
SqlDataAdapter1.Fill(DataSet21)
Dim fieldTable As DataSet2.ResultsDataTable
fieldTable = DataSet21.Results
Dim rowToUpdate As DataSet2.ResultsRow
rowToUpdate = fieldTable.Rows(e.Item.ItemIndex)
rowToUpdate.saved = CType(e.Item.Cells(9).Controls(0), _
TextBox).Text
this works everytime for the standard datagrid, but when I put a dropdownlist in an itemtemplate, it cannot determine the selected value of the drop down list and I cannot.
Can someone tell me how to do this?
Thanks,
Chuck
|