dynamic added column cannot groupable or sortable

2 posts, 0 answers
  1. Jimmy
    Jimmy avatar
    7 posts
    Member since:
    Apr 2016

    Posted 12 May 2016 Link to this post

    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.
  2. Stefan
    Stefan avatar
    799 posts

    Posted 13 May 2016 Link to this post

    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.

    Stefan X1
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top