I have a RadGrid where I am handling the event InsertCommand and doing the data insertion through a call to a BLL method (so no datasource is bound to the grid) the problem is after the insertion teh grid stays in insert mode, i want it to go back to list mode?
This is what I have:
thanks
This is what I have:
| void grid_InsertCommand(object source, GridCommandEventArgs e) |
| { |
| GridEditableItem eeditedItem = e.Item as GridEditableItem; |
| Dictionary<string, Object> newnewValues = new Dictionary<string, object>(); |
| e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem); |
| bool success = new SRA.Utils.GenericCodeBLL(TableName, DataKeyName, EnabledKeyName).Insert(newValues); |
| if (success) |
| { |
| //Display feedback message here |
| grid.MasterTableView.Rebind(); |
| } |
| } |
thanks