V
Vic
I have a strange problem, and hope that somebody cane help me to find the
solution.
I bound a Arraylist with objects to a Datagridview (via the Datasource).
The class of the objects have 3 public properties by which the datagrid have
3 columns, but the problem is that de columns in the datagrid are not in the
same sequence as the properties in the class definition. For instance is
the properties are P1, P2 and P3 and defined in that order in the class, the
columns in the datagridview are (from left to right) P3, P1 and P2 And the
most strange is that it must be a problem on my pc or the Vb2005 (Sp1) on
that pc (OS= Vista Home Premium). Because if a run the same, (small example)
project on a other pc there the columns are showing correct.
Is there anybody who recognizes this problem and cane help me?
Best Regards Vic
solution.
I bound a Arraylist with objects to a Datagridview (via the Datasource).
The class of the objects have 3 public properties by which the datagrid have
3 columns, but the problem is that de columns in the datagrid are not in the
same sequence as the properties in the class definition. For instance is
the properties are P1, P2 and P3 and defined in that order in the class, the
columns in the datagridview are (from left to right) P3, P1 and P2 And the
most strange is that it must be a problem on my pc or the Vb2005 (Sp1) on
that pc (OS= Vista Home Premium). Because if a run the same, (small example)
project on a other pc there the columns are showing correct.
Is there anybody who recognizes this problem and cane help me?
Best Regards Vic