Hi,
C1InputPanel doesn’t save any updates to a data source. For example, when the user clicks the "Save Data" button on InputDataNavigator it simply fires the SaveData event where the developer should commit all changes to the underlying data source, such as:
private void inputDataNavigator1_SaveData(object sender, EventArgs e) { employeesTableAdapter.Update(nWINDDataSet.Employees); }
You can do the same after clicking the Save button in the ribbon.
In InputDataNavigator we use the following code for deleting an existing row:
internal void OnDelete() { CurrencyManager cm = InputDataNavigator.CurrencyManager; if (cm != null && cm.Count > 0) { IBindingList bindingList = cm.List as IBindingList; if (bindingList != null && bindingList.AllowRemove) { int index = cm.Position; if (index >= 0 && index < cm.Count) { CancelEventArgs cea = new CancelEventArgs(); InputDataNavigator.RaiseConfirmDelete(cea); if (!cea.Cancel) { try { cm.RemoveAt(index); } catch (Exception e) { HandleException(InputNavigatorButton.Delete, e); } } } } } }
Hope that will help.
Regards,
-Andrey