This is a migrated thread and some comments may be shown as answers.

Spreadsheet bind datatable (non=MVVM)

1 Answer 224 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
dinesh
Top achievements
Rank 1
dinesh asked on 18 Jul 2013, 11:11 AM
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.

1 Answer, 1 is accepted

Sort by
0
Andrew
Telerik team
answered on 23 Jul 2013, 08:40 AM
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 >>
Tags
Spreadsheet
Asked by
dinesh
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Share this question
or