reorder columns in a gridview

E

eagle

How can I reorder the columns in a gridview. The gridview is autogenerated,
and in a windows application I can use gv.columns("Client').DisplayIndex=0
but in an asp page I get an errors that says DisplayIndex is not a member.
How can I do this? Thanks for your help.
 
C

chenhong

in the autogenerated aspx code, move the column in the gridview.
the order of the columns in the aspx code will affect the order of the
display
 

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

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top