Set a Grid as Datasource for my graph

3 posts, 0 answers
  1. Filleau
    Filleau avatar
    114 posts
    Member since:
    Jun 2006

    Posted 13 Oct 2009 Link to this post

    Hi,
    I'm using the latest release with VS2008 and I code in VB

    I'm searching how to set my RadGrid as a data source for my RadChart.
    I don't use a data table, because I fill the RadGrid programaticly

    How to do this ?

    Thanks
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 16 Oct 2009 Link to this post

    Hello Filleau,

    RadChart supports binding to IEnumerable and IListSource data sources. Just make sure that the Grid object/collection you are binding to implements either one of those two interfaces.

    Best wishes,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 16 Mar 2010 Link to this post

    Do you programatically build a binding source and bind that to your grid? If so, you can use that. (I've recently done that and it works very well)

    If you loop through data to build your grid, then I think you would need to do the same for your chart. I'd suggest building a binding source programatically and then binding both the grid and the chart to that.
    Rich
Back to Top