I have a radgrid, bind to a collection list ( a list of data entitis).
One the grid_update command, GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)editMan.GetColumnEditor("Notes") returns "specificied argument was out of the range of valid value" error. But Notes is one of the item in my Collection class. Why?
radgrid update won't work for collection?
Thanks
One the grid_update command, GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)editMan.GetColumnEditor("Notes") returns "specificied argument was out of the range of valid value" error. But Notes is one of the item in my Collection class. Why?
radgrid update won't work for collection?
protected void rgDesigLevel_UpdateCommand(object sender, GridCommandEventArgs e)
{
switch (e.Item.OwnerTableView.Name)
{
case "Master":
string Level1Notes="";
CustomerFileHistoryManager cfhm = new CustomerFileHistoryManager();
foreach (GridDataItem item in rgDesigLevel.EditItems)
{
Int32 AuditCustomerId = Convert.ToInt32(item.GetDataKeyValue("ID"));
GridEditManager editMan = item.EditManager;
GridTextBoxColumnEditor editor = (GridTextBoxColumnEditor)editMan.GetColumnEditor("Notes");
Level1Notes = editor.TextBoxControl.Text;
cfhm.UpdatePreProcNotes(AuditCustomerId, Level1Notes);
}
break;
}
}
}