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

DataTable binding example

1 Answer 118 Views
GridView
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 29 Dec 2009, 11:06 PM
can't find in the latest documentation how to bind datatable to the radgridview. .itemssource works , table gets rows added , call .rebind , grid scrolls but rows are added with no values (or at least not displayed) , also how do I get scroll bars...

is this release of ddls botched? or is it me?

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 30 Dec 2009, 12:44 PM
Hello mark,

Please, take a look at this online example. Go to http://demos.telerik.com/wpf/ -> GridView -> Populating with Data -> DataSources.

On the right there is a radio group with all kinds of data sources. The first one is DataTable. The gird binds correctly, values are shown and scroll-bars also.

I have also attached a small sample project with a DataTable and the Rebind method.

Scroll-bars appear when the space available for the grid is less than the space needed to show the data. For example, in my sample project I have allowed a height of 500 for the grid and its vertical scroll-bar appears.

I hope this helps. Let us know if you have any other questions.

Greetings,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
mark
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or