Binding a grid to a DataTable replacement

2 posts, 1 answers
  1. Jose Simas
    Jose Simas avatar
    35 posts
    Member since:
    Mar 2009

    Posted 06 Oct 2010 Link to this post


    I have been using DataTables bound to Telerik GridViews for displaying tabular data. But in some I cases I will have to stop using the DataTable and instead use a custom class which simplified would look like this:

    public class UDataTable
        public IList<string> Header { get; set; }
        public IList<UDataRow> Rows { get; set; }

    public class UDataRow
        public IList<object> Columns = new List<object>();

    Could anyone point me to any resource that explains what I need to add to my classes so that the GridView displays them like it displays a DataTable?


  2. Answer
    Pavel Pavlov
    Pavel Pavlov avatar
    2039 posts

    Posted 08 Oct 2010 Link to this post

    Hi Jose Simas,

    You can see a simillar problem solved there

    the blogpost is for Silverlight , but the same approach may be applied for WPF as well.

    Kind regards,
    Pavel Pavlov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top