BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridGroupingControl1_TableControlCurrentCellValidating(object sender, GridTableControlCancelEventArgs e) { GridCurrentCell cc = e.TableControl.CurrentCell; GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex] as GridTableCellStyleInfo; if (style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.MappingName == "ParentName" && (style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell || style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell)) { string newvalue = cc.Renderer.ControlText; GridRecordRow rr = style.TableCellIdentity.DisplayElement as GridRecordRow; rr.ParentRecord.SetValue("ParentDec", newvalue); } }
private void gridGroupingControl1_TableControlCurrentCellChanged(object sender, GridTableControlEventArgs e) { GridCurrentCell cc = e.TableControl.CurrentCell; GridTableCellStyleInfo style = e.TableControl.Model[cc.RowIndex, cc.ColIndex] as GridTableCellStyleInfo; if (style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.MappingName == "ParentName" && (style.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell || style.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell)) { string newvalue = cc.Renderer.ControlText; GridRecordRow rr = style.TableCellIdentity.DisplayElement as GridRecordRow; rr.ParentRecord.SetValue("ParentDec", newvalue); e.TableControl.RefreshRange(GridRangeInfo.Row(cc.RowIndex)); } }