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

I' Can't create subGrid

4 Answers 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Santos
Top achievements
Rank 1
Santos asked on 22 May 2013, 01:53 PM
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?

4 Answers, 1 is accepted

Sort by
0
Santos
Top achievements
Rank 1
answered on 22 May 2013, 05:15 PM
I created the Relation in the code server (.cs) and the code run... the problem is solved although not as.

Thanks
0
Peter
Telerik team
answered on 23 May 2013, 04:54 AM
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?
0
Roberto
Top achievements
Rank 1
answered on 12 Sep 2013, 12:18 PM
Hello
I've got the same problem, but don't grasp your solution
please could you add more details?

thanks
0
Peter
Telerik team
answered on 17 Sep 2013, 11:17 AM
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 >>
Tags
GridView
Asked by
Santos
Top achievements
Rank 1
Answers by
Santos
Top achievements
Rank 1
Peter
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or