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

Populate GridView from SQL, ADO .NET

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bernardo
Top achievements
Rank 1
Bernardo asked on 27 Jul 2009, 02:33 AM
Hey there,
I'm just a novice programmer, so I don't know how to how to use Linq. I was trying to populate the Grid using an ADO:NET connection to my SQL database, but I haven't seen anywhere how to do this. Could you help me?
Regards,
Bernardo Caldas

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 27 Jul 2009, 07:38 AM
Hi Bernardo,

Using LINQ these days is very easy. All you need to do is to create in Visual Studio with drag & drop (no code at all) your context (LINQ to SQL, ADO.NET Entities, etc) and assign desired table as grid ItemsSource. You can check some of my blog posts for more info:

http://blogs.telerik.com/vladimirenchev/posts/09-01-14/how_to_wpf_declarative_binding_to_linq_to_sql_using_objectdataprovider.aspx

http://blogs.telerik.com/vladimirenchev/posts/09-01-16/master_detail_with_radgridview_for_wpf_using_objectdataprovider_and_ado_net_entities.aspx

http://blogs.telerik.com/vladimirenchev/posts/09-01-19/detail_row_for_your_wpf_datagrid_with_ado_net_dataservice_binding.aspx

All the best,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Bernardo
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or