BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void deleteBT_Click(object sender, System.EventArgs e) { DataTable table = (DataTable) gridDataBoundGrid1.DataSource; int curRowIndex = gridDataBoundGrid1.CurrentCell.RowIndex; if (gridDataBoundGrid1.Model.RowCount > 1 && curRowIndex > 0 && gridDataBoundGrid1.Model.RowCount > curRowIndex ) { int recNumber = this.gridDataBoundGrid1.Binder.RowIndexToPosition(curRowIndex); this.gridDataBoundGrid1.Binder.RemoveRecords(recNumber, recNumber); } else { Console.WriteLine("No More rows / CurCell is not set"); } }
gridDataBoundGrid1.Focus();
gridDataBoundGrid1.CurrentCell.MoveTo(1, 1);