Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13755 | May 10,2004 08:48 AM UTC | May 11,2004 01:44 PM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
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(); > } >} >
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.