How to reorder columns in datagrid

Z

zlf

Hi all,
I have a datagrid with a datatable-typed datasource. I want to rearrange
the columns and rows order. However, I cannot find any method or property
related to columns and rows order in DataGrid class and DataTable class. May
you tell me how to reorder them. Thanks

e.g
Original DataGrid
A B
1 2
3 4

DataGrid after reordering
B A
2 1
4 3

zlf
 

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

Top