This is a migrated thread and some comments may be shown as answers.

dynamic added column cannot groupable or sortable

1 Answer 36 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jimmy
Top achievements
Rank 1
Jimmy asked on 12 May 2016, 09:38 AM
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.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 13 May 2016, 02:45 PM
Hello Jimmy,

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.
Tags
GridView
Asked by
Jimmy
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or