K
kuljitsingh
Why e.Item.DataItem("datafield") does not works in EditCommand,
CancelCommand, and UpdateCommand whereas e.Item.Cells(12).Text works?
Is there a way to retreive datafields of a datagrid by their fieldnames
in these event methds???
Scorpius
Examnple -
Private Sub DataGrid123_EditCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid123.EditCommand
e.Item.Cells(12).Text 'WORKS
e.Item.DataItem("datafield") ' DOES NOT WORKS
CancelCommand, and UpdateCommand whereas e.Item.Cells(12).Text works?
Is there a way to retreive datafields of a datagrid by their fieldnames
in these event methds???
Scorpius
Examnple -
Private Sub DataGrid123_EditCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
DataGrid123.EditCommand
e.Item.Cells(12).Text 'WORKS
e.Item.DataItem("datafield") ' DOES NOT WORKS