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

How do I use sample data in a GridView in the WPF Designer?

3 Answers 129 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rod
Top achievements
Rank 1
Rod asked on 20 Mar 2013, 05:01 PM
I've got a RadGridView in a WPF 4.5 app I'm working on, which involves grouping. I had a hard time trying to get the data to work initially in the designer (it's coming from a WCF service), but want to be able to do styling of the GridView with sample data. I found an article on MSDN called Walkthrough: Using Sample Data in the WPF Designer, which is helpful, but not entirely complete for the RadGridView. For example, that article discussed opening the ItemsSource property of the out-of-the-box DataGrid control. I tried doing that with the RadGridView, but it didn't work. I'm guessing I'm doing something wrong, but am not sure what, so I would like some direction, please.

3 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 23 Mar 2013, 04:03 AM
Hi Rod,

Would you please clarify whether you were able to get the described behavior using WCF services and MS DataGrid?

Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rod
Top achievements
Rank 1
answered on 25 Mar 2013, 02:06 PM
I didn't try the MS DataGrid.

I got it to work by defining a couple of custom classes and using example data in a .xaml file.
0
Yoan
Telerik team
answered on 25 Mar 2013, 02:41 PM
Hello Rod,

Thank you for the update. I am glad to hear you have resolved the issue. 


Kind regards,
Yoan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Rod
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Rod
Top achievements
Rank 1
Share this question
or