BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridChild_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e) { GridCurrentCell cc = this.gridChild.CurrentCell; GridBoundRecordState rs = this.gridBinder.GetRecordStateAtRowIndex(cc.RowIndex); if(rs.LevelIndex == 0) { this.gridChild.BeginUpdate(); cc.EndEdit(); this.gridBinder.EndEdit(); if(this.gridChild.IsExpandedAtRowIndex(cc.RowIndex)) { this.gridChild.CollapseAtRowIndex(cc.RowIndex); this.gridChild.ExpandAtRowIndex(cc.RowIndex); } cc.MoveTo(cc.RowIndex, cc.ColIndex, GridSetCurrentCellOptions.SetFocus); this.gridChild.EndUpdate(); } }
>private void gridChild_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e) >{ > GridCurrentCell cc = this.gridChild.CurrentCell; > GridBoundRecordState rs = this.gridBinder.GetRecordStateAtRowIndex(cc.RowIndex); > if(rs.LevelIndex == 0) > { > this.gridChild.BeginUpdate(); > cc.EndEdit(); > this.gridBinder.EndEdit(); > if(this.gridChild.IsExpandedAtRowIndex(cc.RowIndex)) > { > this.gridChild.CollapseAtRowIndex(cc.RowIndex); > this.gridChild.ExpandAtRowIndex(cc.RowIndex); > } > cc.MoveTo(cc.RowIndex, cc.ColIndex, GridSetCurrentCellOptions.SetFocus); > this.gridChild.EndUpdate(); > } >} >