e.Item.ItemIndex获取值超出范围??
zzxap 2008-07-15 01:34:09
string ID =MyDataGrid.DataKeys[e.Item.ItemIndex].ToString();
e.Item.ItemIndex是獲取第一列的id?
获取第二列第三列相应行值是用什么语句?
提示错误
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index