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
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 >>