PageDataGridDataItemClassOnCollectionChanged Method |
Namespace: SOWIWin.Helper
protected virtual void OnCollectionChanged( Object sender, NotifyCollectionChangedEventArgs e )
[Missing <param name="sender"/> documentation for "M:SOWIWin.Helper.PageDataGrid`1.OnCollectionChanged(System.Object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)"]
[Missing <param name="e"/> documentation for "M:SOWIWin.Helper.PageDataGrid`1.OnCollectionChanged(System.Object,System.Collections.Specialized.NotifyCollectionChangedEventArgs)"]
private void DataGridView_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (e.Action == NotifyCollectionChangedAction.Remove) { var lListRemove = e.OldItems; SOWIData.Management.DataGrid lItem; foreach (var item in lListRemove) { lItem = (SOWIData.Management.DataGrid)item; if (lItem.ID > 0) { AppDataGrid.Delete(lItem.ID); } } } }