In the above post, I pasted an old version of personal.txt, so I paste it again:
Uvwxyz 50 Male 123456789 Hijklmn 60 Male 67890123456789 Opqrst 40 Female 987654321012345678 Abcdefg 30 Male 123456789012345
And I have another question, when the data is loaded into the DataGrid, the fields of each record are ordered in alphabetical order ( the "Age" column will appear firstly, then "IdNumber", "Name", "Sex" ), not as the order in column.xml, how to make it keep the sequence of the xml file?
1 person found this helpful
You will need to create an array of DataGridColumns in the order desired.
And set their widths based on measuring all of the rows. See past
discussions on this topic.
Thanks, I created an array, the question's solved.