Hi there!
i have RadGrid that i want it to be edited by user in run time which allows him to delete ,insert,and update then i have to perform this changes on the entity database so how can i do this
how can i insert new row and get the data that inserted in each field on it
how can i get the updates
i tried this code but it returns the old data not the new one which i add by editting
foreach (GridDataItem editedItem in RadGrid1.Items)
{
Hashtable newValues = new Hashtable();
//The GridTableView will fill the values from all editable columns in the hash
int i=int.Parse( editedItem.GetDataKeyValue("id").ToString());
editedItem.ExtractValues(newValues);
akaratCBContext conn = new akaratCBContext();
Product p = conn.Products.Where(prd => prd.id == i).FirstOrDefault();
p.ProductName= newValues["ProductName"].ToString();
p.Description= newValues["Description"].ToString();}