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

Binding a grid to a DataTable replacement

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jose Simas
Top achievements
Rank 2
Jose Simas asked on 06 Oct 2010, 05:40 PM

Hi,

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?

Thanks,
Jose

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 08 Oct 2010, 01:31 PM
Hi Jose Simas,

You can see a simillar problem solved there http://blogs.telerik.com/vladimirenchev/posts/09-04-23/lightweight_datatable_for_your_silverlight_applications.aspx

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
Tags
GridView
Asked by
Jose Simas
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Share this question
or