Gridnotsupportedexception when trying to bind xml to datagrid

2 posts, 0 answers
  1. G S S
    G S S avatar
    12 posts
    Member since:
    Sep 2007

    Posted 17 Apr 2008 Link to this post

    First of all, I'd just like to say that Telerik Controls are great and do wonders for my work in ASP.NET.

    My question is, I have a simple xml file (see below) and I want to bind this to the datagrid. When I do this, I get a GridNotSupportedException: Cannot find any bindable properties.

    When binding XML, I thought that the code in the codebehind will be automatically generated for me, but it wasn't? So do I have to enter this code:

    My XML file is like this:

    <?xml version="1.0"?>

    What do I do?
    Alternatively, if I can't bind to XML, what collection works with the Grid which will support multiple columns?

  2. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 18 Apr 2008 Link to this post

    Hi :)

    I would suggest you to use XmlDataSource.

    You can review the following RadGrid resources:

    Editing XML using XmlDataSource
    Population/data editing with XMLDataSource control

    <John:Peel />
Back to Top