protected void EmployeesGridView_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e) { Employee employee = new Employee(phonebook.Session); employee.BindValuesFromOrderedDictionary<Employee>(e.NewValues); phonebook.Employees.Add(employee); phonebook.Save(); EndEditing(sender as ASPxGridView, e); }