Skip to content

Column order in datagrid with object list

Justin

Asked Mar 23, 2006, 11:43 AM EST1 answer
Share
LinkedInX
I have an app that I am wrting and I want to use a datagrid.  I am trying to populate it with an object arraylist.  I did it alot like this example http://www.c-sharpcorner.com/Code/2004/June/ObjectDataGridBinding.asp.  What I can't figure out is how I can order the columns how I want.  Any help is greatly appreciated.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    This is how I do it: "MyDataGrid.Columns["MyColumnName"].DisplayIndex = 0;"
    0