BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
this.gridGroupingControl1.Table.DeleteRecord
Or, you can work directly with your datasource and use methods on it to delete its records.
With the 3010 code base, if you use the new record selection support,
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None;
then this button handler will delete the selected records.
private void button2_Click(object sender, System.EventArgs e) { foreach(SelectedRecord r in this.gridGroupingControl1.Table.SelectedRecords) this.gridGroupingControl1.Table.DeleteRecord(r.Record); }
private void button2_Click(object sender, System.EventArgs e) { ArrayList recs = new ArrayList(); foreach(GridRangeInfo r in this.gridGroupingControl1.TableModel.Selections.GetSelectedRows(true, false)) { for(int row = r.Top; row <= r.Bottom; ++row) { GridTableCellStyleInfo style = this.gridGroupingControl1.TableModel[row, 1]; GridRecordRow rr = style.TableCellIdentity.DisplayElement as GridRecordRow; if(rr.ParentRecord != null) recs.Add(rr.ParentRecord ); } } foreach(Record rec in recs) this.gridGroupingControl1.Table.DeleteRecord(rec); }