replyanshu
asked on
Datagridview column reorder problem
hi all,
i have implemented a datagridview with column reorder functionality. it is working fine, like a am able to drag and drop columns whereever i want them.
now the problem arises when i put a for loop to check the current position of columns, the current position is still unchanged i.e. i put II nd column to the position of iV th column but still i get column 2 at IInd position.
Column reorder doesn't affect the actual column position.
any sort of help would be appreciated.
thanks
i have implemented a datagridview with column reorder functionality. it is working fine, like a am able to drag and drop columns whereever i want them.
now the problem arises when i put a for loop to check the current position of columns, the current position is still unchanged i.e. i put II nd column to the position of iV th column but still i get column 2 at IInd position.
Column reorder doesn't affect the actual column position.
any sort of help would be appreciated.
thanks
How are you "checking" for column order? Are you just looping through the columns, or are you checking a property value?
ASKER
yes looping through the columns
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.