How do I change the order of object properties stored in Generics

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a List<> of objects that I want to use as the datasource for my
datagridview at runtime. However, when I bind to it, the columns are in a
strange order (no correlation to my query or to the underlying object
properties). Any idea how to manipulate the order of object properties,
either on the datagridview or in the underlying list?

E.g., the grid displays
object.LastName object.ID object.FirstName

But it SHOULD display
object.ID object.LastName object.FirstName
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top