1
如何在DeleteCommand事件中獲取RadGrid中特定列的值?我想通過這些方式,但他們都返回空值:如何在RadGrid事件的DeleteCommand中獲取列值
GridDataItem da = e.Item as GridDataItem;
string name = da["materialName"].Text;
或
name = RadGrid1.Items[e.Item.ItemIndex]["materialName"].Text;
或
name = RadGrid1.MasterTableView.Items[e.Item.ItemIndex]["materialName"].Text;
或
name = RadGrid1.MasterTableView.Items[e.Item.RowIndex]["materialName"].Text;