Home Forums WinForms controls Xceed Grid for WinForms Problem setting DataSource…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #14404 |

    Hi, I hope i get a response for this one… because I’m clueless…

    I call gridControl.DataSource = MyList;

    and get the following exception : “The data source must implement the IList or IListSource interface.”

    Problem is… my list class implements IList<T> ..so why do i get this exception???

    Imported from legacy forums. Posted by Pitrick (had 1733 views)

    User (Old forums)
    Member
    Post count: 23064

    Because the grid (I’m not sure about v3) is built for compatibility with .NET 1.1 there are no generics. You’ll need to implement either IList or IListSource. One is generic, the other one isn’t, it’s looking for the non generic one. Just implement IList on your collection and you’ll be sorted.

    Imported from legacy forums. Posted by Chris (had 2898 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.