E mica lo facevi intutti e due gli eventi?
Io l'itemcommand non ce l'ho nemmeno come evento.
Ho provato a spostare il codice che avevo nell'ONITEMDATABOUND nell'ONEDITCOMMAND, ma continuo a non avere nessun risultato:
'QUESTO STA NELLA SUB DELL'ONEDITCOMMAND
If e.Item.ItemType = ListItemType.EditItem Then
Dim DDLTemp As DropDownList
DDLTemp = CType(e.Item.FindControl("DDLSupCat"), DropDownList)
DDLTemp.SelectedIndex = DDLTemp.Items.IndexOf(DDLTemp.Items.FindByText(Sup_Cat_sel))
Session("ID_sup_cat") = DDLTemp.SelectedItem.Value
lblerrore.Text = Session("ID_sup_cat")
End If
Non so più assolutamente cosa tentare...