G
Guest
Hi,
I'm using a List(of T) as the DataSource for a DataGridView. The list is a
list of objects for which I wrote the class. The headers in the DataGridView
are the names of the properties of the class, and the DataGridView columns
appear in some apparent random order (if not random, I can't figure out what
the order is).
My questions are:
1) how do I control the order of the columns in the DGV (preferably from my
class, or the List(of T) )
2) can I code something in my class to control the DGV headers ( I know I
can use brute force to set the column headers after creating the DGV, but I'd
like to know if I can override the DGV's default behavior by coding something
in my class)
Thanks,
Tom
I'm using a List(of T) as the DataSource for a DataGridView. The list is a
list of objects for which I wrote the class. The headers in the DataGridView
are the names of the properties of the class, and the DataGridView columns
appear in some apparent random order (if not random, I can't figure out what
the order is).
My questions are:
1) how do I control the order of the columns in the DGV (preferably from my
class, or the List(of T) )
2) can I code something in my class to control the DGV headers ( I know I
can use brute force to set the column headers after creating the DGV, but I'd
like to know if I can override the DGV's default behavior by coding something
in my class)
Thanks,
Tom