Spreadsheet bind datatable (non=MVVM)

2 posts, 0 answers
  1. dinesh
    dinesh avatar
    1 posts
    Member since:
    Jun 2008

    Posted 18 Jul 2013 Link to this post

    Hi Support,

    I am trying to bind datatable to spreadsheet, but it does not show records into the spreadsheet control. Following is the source code:

    DataTable result = somemethod();
            excelsheet.DataContext = result;

    Am I missing something. Please let me know.

    Thanks.
  2. Andrew
    Admin
    Andrew avatar
    140 posts

    Posted 23 Jul 2013 Link to this post

    Hello dinesh,

    The DataContext property you are trying to use is originating from the FrameworkElement class from which RadSpreadsheet inherits. You can read more about the property here.

    For the time being we do not support passing a collection to RadSpreadsheet and displaying it automatically. You can do that by enumerating the collection and setting cells values in a row for every record. You can read more on how to use our spreadsheet component here.

    If you have any other questions do not hesitate to contact us again.

    Regards,
    Andrew
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top