BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void menuItem2_Click(object sender, System.EventArgs e) { //insert if(this.mouseDownRow > -1 && this.mouseDownCol > -1) { int position = this.gridDataBoundGrid1.Binder.RowIndexToPosition(mouseDownRow); this.gridDataBoundGrid1.BeginUpdate(); DataRow dr = dt.NewRow(); this.dt.Rows.InsertAt(dr, position); this.dt.AcceptChanges(); this.gridDataBoundGrid1.EndUpdate(); } } private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) { dt.AcceptChanges(); }
private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) { if(this.dt.Rows.Count > 0) dt.AcceptChanges(); }
>private void gridDataBoundGrid1_RowLeave(object sender, GridRowEventArgs e) >{ > if(this.dt.Rows.Count > 0) > dt.AcceptChanges(); >} >