I am trying to find a control in the EditCommand of a datagrid.
I am using
Sub dgOutputs_Edit(sender as Object, e as DataGridCommandEventArgs)
Dim intOutput as int32 = Ctype(e.Item.FindControl("ddlOutput"), DropDownList).SelectedItem.Value
dgOutputs.EditItemIndex = e.Item.ItemIndex
End Sub
in the same way that I use it in the Update command but I cannot seem to reference the DropDownList.
Any clues??
Vicky....
"I used to have a handle on life...then it broke
I am using
Sub dgOutputs_Edit(sender as Object, e as DataGridCommandEventArgs)
Dim intOutput as int32 = Ctype(e.Item.FindControl("ddlOutput"), DropDownList).SelectedItem.Value
dgOutputs.EditItemIndex = e.Item.ItemIndex
End Sub
in the same way that I use it in the Update command but I cannot seem to reference the DropDownList.
Any clues??
Vicky....
"I used to have a handle on life...then it broke