int pos = this.grid.Table.Records.IndexOf(this.grid.Table.CurrentRecord); if(pos > - 1) this.grid.Table.Records[pos].Delete();
private void gridGroupingControl1_TableControlPushButtonClick(object sender, GridTableControlCellPushButtonClickEventArgs e)
{
int row = e.Inner.RowIndex;
int col = e.Inner.ColIndex;
GridTableCellStyleInfo style = e.TableControl.Model[row, col];
//get some record data
GridRecordRow grr = style.TableCellIdentity.Table.DisplayElements[row] as GridRecordRow;
DataRowView drv = grr.GetData() as DataRowView;
Console.WriteLine(drv[0].ToString() + " " + drv[1].ToString() );
}
>int pos = this.grid.Table.Records.IndexOf(this.grid.Table.CurrentRecord); >if(pos > - 1) > this.grid.Table.Records[pos].Delete(); >
private void gridGroupingControl1_TableControlPushButtonClick(object sender, GridTableControlCellPushButtonClickEventArgs e)
{
int row = e.Inner.RowIndex;
int col = e.Inner.ColIndex;
GridTableCellStyleInfo style = e.TableControl.Model[row, col];
GridRecordRow rec = style.TableCellIdentity.Table.DisplayElements[row] as GridRecordRow;
if(rec != null)
{
int pos = this.gridGroupingControl1.Table.Records.IndexOf(rec.ParentRecord);
if(pos > -1)
this.gridGroupingControl1.Table.Records[pos].Delete();
}
}