I have added several columns into gridview in the code, the binding is something like a[" + Index + "].b while Index is a number like 0,1,2. So how to solve the problem since the added column cannot be drag or sort. I have already tried set DataType, seems like not ok.
Generally, you should be able to perform data operations by dragging the columns of RadGridView irrelevant to whether they are added at runtime or not. Can you please check out your application for Binding errors? They can be observed in the output window in Visual Studio when the project is run in debug mode.
I have also attached a sample project demonstrating that the control behaves as expected in such scenarios.
Regards,
Stefan X1
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.