B
Benton
Hi there,
I have a GridView with DataKeyNames="SID" on the markup.
To me surprise, I can get this value just fine in the RowDeleting and
RowEditing events, for instance:
string pk = gv.DataKeys[e.NewEditIndex].Value.ToString();
However in the RowDataBound event, the DataKeys[] array is empty.
Is this normal or am I doing something wrong?
Thanks in advance,
-Benton
I have a GridView with DataKeyNames="SID" on the markup.
To me surprise, I can get this value just fine in the RowDeleting and
RowEditing events, for instance:
string pk = gv.DataKeys[e.NewEditIndex].Value.ToString();
However in the RowDataBound event, the DataKeys[] array is empty.
Is this normal or am I doing something wrong?
Thanks in advance,
-Benton