Link to home
Start Free TrialLog in
Avatar of replyanshu
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
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

How are you "checking" for column order?  Are you just looping through the columns, or are you checking a property value?
Avatar of replyanshu
replyanshu

ASKER

yes looping through the columns
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial