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

GridView.DataSource

3 Answers 222 Views
GridView
This is a migrated thread and some comments may be shown as answers.
imee
Top achievements
Rank 1
imee asked on 30 Sep 2009, 12:13 PM
hi,
I am using Telerik GridView
while binding it to data source , it doesn't show the DataSource Property ,
how it will show this property,  & what is the difference between DataSource and ItemSource
waiting for reply,

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 30 Sep 2009, 04:22 PM

Hi imee,

Can you please specify which version of RadGridView relates to the question.  It is a little bit confusing as our system indicates the post is relevant to RadGridView for Winforms .
Now , both ItemsSource and DataSource properties exist in different versions of RadGridView for different platforms ( e.g. WinForms, Silverlight or WPF and even ASP.NET) . Generally they serve the same purpose.

Please specify exactly which version do you use , so we can provide the appropriate assistance.

Sincerely yours,

Pavel Pavlov
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.
0
imee
Top achievements
Rank 1
answered on 03 Oct 2009, 09:56 AM
Thanks for your concern regarding my query.

The version specification for the controls that im using is 'RadControls for WPF Q2 2009'
0
Pavel Pavlov
Telerik team
answered on 07 Oct 2009, 12:04 PM
Hi imee,

Thanks for using our WPF controls! In the WPF and Silverlight platforms  any items controls e.g. listboxes , comboboxes , datagrids etc. expose the ItemsSource property instead of the DataSource ( more typical to older ADO.NEtT , ASP , and Winforms controls) . Please use the ItemsSource property of RadGridView . You can bind to any IEnumerable collection .

Let me know if you find any troubles.

Sincerely yours,
Pavel Pavlov
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
imee
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
imee
Top achievements
Rank 1
Share this question
or