Hi all,

is there any way to control the order of the columns datagridview\dataproperty when binding to a collection of custom classes while setting the control to autogeneratecolumns to true?

for example i have a custom class , person, who has 3 properties exposed name, age and sex when a collection of these classes the datagrid orders them differrently to how i would.

can anyone tell me if i can use attributes on the methods so they get created in a certain sequence i would set?

i dont really want to manually set the display index and would prefer to have the datagridview do all the work.

any suggestions? experts please help this problem is doing my nuts in!