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

4 posts, 0 answers
  1. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 20 Mar 2013 Link to this post

    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.
  2. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 22 Mar 2013 Link to this post

    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.

  3. Rod
    Rod avatar
    71 posts
    Member since:
    Jan 2011

    Posted 25 Mar 2013 Link to this post

    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.
  4. Yoan
    Admin
    Yoan avatar
    1182 posts

    Posted 25 Mar 2013 Link to this post

    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.

Back to Top