void rdItemsGrid_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "UpdateAll")
{
foreach (GridDataItem editedItem in rdItemsGrid.EditItems)
{
if (editedItem.EditFormItem.IsInEditMode)
UpdateItemPermission(editedItem.EditFormItem);
}
rdItemsGrid.Rebind();
}
else if (e.CommandName == "Update")
{
if (e.Item.IsInEditMode)
UpdateItemPermission(e.Item as GridEditableItem);
rdItemsGrid.Rebind();
}
}
The Rebind() method which is used in Update All block works fine. But when i call the Rebind method in the Update block, which is highlighted in red, I get the following Error.
DataBinding: ' System.Data.DataRowView' does not contain a property with the name '....'
Description: An unhandled exception occured during the execution of the current web reequest.Please review the stack trace for more information about the error and from where it originated in the code.
Exception details: System.Web.HttpException :DataBinding: ' System.Data.DataRowView' does not contain a property with the name '....
Can you kindly help me in solving this issue.