If you have the DataGridItem's ItemIndex, then you can index into the DataGrid's
DataKeys collection. The DataGridItem is available in the EditCommand via
the DataGridCommandEventArgs parameter.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> I set the DataKeyField in a DataGrid ,
> and an EditCommand ,
> when I click the EditCommand ,
> I want to get the row's DataKeyField ,
> and redirect to other page like this Item.aspx?id=XXX
> the XXX jut equal the DataKeyField 's value ?
> how can I do this ?
> and I have a long tiem to try it ,
> but Not OK!