Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21206 | Nov 4,2004 12:50 PM UTC | Nov 4,2004 05:42 PM UTC | WinForms | 5 |
![]() |
Tags: GridControl |
GridStyleInfoStore.ControlProperty.IsCloneable = false;
By default the style clones it properties when making assignments. In this case, you seem to want to use the reference to the same bject, and not a clone. (As the cloning method may not persist things like the current value of teh control).
GridCurrentCell cc = this.mTestGrid.CurrentCell;
cc.Deactivate(false);
Control tempControl = mTestGrid[1,1].Control;
mTestGrid[1,1].Control = mTestGrid[1,2].Control;
mTestGrid[1,2].Control = tempControl;
cc.Activate(cc.RowIndex, cc.ColIndex);
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.