Does standard ASP.NET Gridview allow user to reorder columns at will?
If so, how do I implement this feature? Thanks.
Example: my gridview has 3 columns A, B and C. User 1 likes it to be arranged as B, C, A; user 2 likes C, A, B, and so on. I’d like the user to be able to drag the column header to his desired position if this feature is supported.
The standard
ASP.NET Gridviewdoes not support column ordering, unless you make a round-trip to the server and modify your data source.You will have to implement the functionality by yourself or consider a third-party framework, such as
Telerik's RadControls for ASP.NET AJAX. See a working example here.