RadPivotGrid dynamic from codebehind

3 posts, 0 answers
  1. newp
    newp avatar
    15 posts
    Member since:
    Jan 2017

    Posted 05 Jan 2017 Link to this post


    Need some help please

    How can I bind a  RadPivotGrid dynamically from codebehind?

    The select query can change depending on a dropdownlist I have on the page so the field names will also change.

    Example of select :

    Select CompanyName, EmployeeId, FirstName,LastName, Salary from Table1

    Example of Grid

    CompanyName  Number of employees  Total Salary

    Company1              23                                  345,676


  2. Stefan
    Stefan avatar
    877 posts

    Posted 09 Jan 2017 Link to this post


    In case I am understanding your requirement correctly, you should be able to define the needed DataProvder for RadPivotGrid at runtime. Please, check out the relevant section of RadPivotGrid's online help.

    Hopefully, this helps.

    Best Regards,
    Stefan X1
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. newp
    newp avatar
    15 posts
    Member since:
    Jan 2017

    Posted 09 Jan 2017 in reply to Stefan Link to this post

    Thanks. I will check out the link
Back to Top