I' Can't create subGrid

5 posts, 0 answers
  1. Santos
    Santos avatar
    13 posts
    Member since:
    Nov 2012

    Posted 22 May 2013 Link to this post

    Hello people:

    I tried to create my first subird with winforms and I have not gotten.

    I created the "radgrid1" and chose the datasource. Good.
    Later i created the template and chose the DataSource.
    Later i created the relation, parent = grid and select column id; child = template and selected column jwId.

    Them, when the next line fire, i get a error "GridViewEventDataProvider can not be applied to bound GridViewTemplate"

    this.radGridView1.Templates[0].HierarchyDataProvider = new GridViewEventDataProvider(this.radGridView1.Templates[0])


    What it's the problem?
  2. Santos
    Santos avatar
    13 posts
    Member since:
    Nov 2012

    Posted 22 May 2013 Link to this post

    I created the Relation in the code server (.cs) and the code run... the problem is solved although not as.

    Thanks
  3. Peter
    Admin
    Peter avatar
    1157 posts

    Posted 22 May 2013 Link to this post

    Hi Santos,

    I am happy that you found a solution for this. 
    Should you have any other questions, do not hesitate to ask.

    Regards,
    Peter
    Telerik
    RadChart for WinForms is obsolete. Now what?
  4. Roberto
    Roberto avatar
    1 posts
    Member since:
    Sep 2013

    Posted 12 Sep 2013 Link to this post

    Hello
    I've got the same problem, but don't grasp your solution
    please could you add more details?

    thanks
  5. Peter
    Admin
    Peter avatar
    1157 posts

    Posted 17 Sep 2013 Link to this post

    Hi Roberto,

    Thank you for writing.

    You should set the GroupDescriptors property of the GridViewTemplate which is exposed at RadGridView.MasterTemplate. This will allow you to use descriptors which define the grouping criteria and the group's sorting direction for the data that is bound to the RadGridView.
    For more details please, refer to this help article - Setting Groups Programmatically.

    I hope this helps.

    Regards,
    Peter
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top