J
Joel Finkel
Folks,
Can someone please explan why this this line of code works fine when executed within an ItemCommand (that is, once the data are fully bound), but throws an exception when it is executed withn an ItemBound (when the data are being bound to the grid)? The exception is an array out of bounds.
string strID = DataGrid1.DataKeys[e.Item.ItemIndex].ToString();
Thanks in advance.
Joel Finkel
(e-mail address removed)
Can someone please explan why this this line of code works fine when executed within an ItemCommand (that is, once the data are fully bound), but throws an exception when it is executed withn an ItemBound (when the data are being bound to the grid)? The exception is an array out of bounds.
string strID = DataGrid1.DataKeys[e.Item.ItemIndex].ToString();
Thanks in advance.
Joel Finkel
(e-mail address removed)