Spreadsheet databinding

4 posts, 1 answers
  1. Darryl
    Darryl avatar
    6 posts
    Member since:
    Apr 2013

    Posted 10 Apr 2013 Link to this post

    Hi Guys

    I was wondering, is it possible to bind a Collection to a Spreadsheet? For eg if I had a collection ObservableCollection<string> MyCollection , I would be able to bind this a GridView like this -> radGridView1.ItemSource = MyCollection;

    Is this type of binding possible with the Spreadsheet control?

    Thanking you in advance!

    Darryl Chetty
  2. Answer
    Andrew avatar
    140 posts

    Posted 15 Apr 2013 Link to this post

    Hello Darryl,

    Unfortunately, this is not possible with the current version of RadSpreadsheet. Your scenario sounds much more suitable for the RadGridView control.

    At some point we may support adding data from external sources, which is a similar feature, but we have not scheduled it yet.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Edward
    Edward avatar
    1 posts
    Member since:
    Oct 2008

    Posted 20 May 2014 in reply to Andrew Link to this post

    So when I get my data I have to manually set the columns and rows?
  4. Petya
    Petya avatar
    983 posts

    Posted 21 May 2014 Link to this post

    Hi Edward,

    RadSpreadsheet is designed to allow creation and manipulation of documents, as opposed to other controls in the Telerik UI for WPF suite like RadGridView, which are intended for data-bound scenarios. With this in mind, if you want to populate a workbook with the contents of some collection you would need to assign the values yourself.

    Let us know if you have other questions.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top