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

retrieve data from the sqlserver database and show it in radgridview

3 Answers 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pradeep
Top achievements
Rank 1
Pradeep asked on 24 Jun 2009, 06:22 AM
Hi, I am new to silverlight...I want to retrieve data from the sqlserver database and show it in radgridview.Maybe this is simple but i want it.Quick reply is really appreciable.
I wrote one webservice to read data from database but it is returning as  a dataset in silverlight it is shwoing as a erroe.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Jun 2009, 06:35 AM
Hello Pradeep,

In Silverlight there are no DataTable or DataSet! You can check this demo for more info about how to achieve your goal:
http://demos.telerik.com/silverlight/#GridView/Services/DataService

Sincerely yours,
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.
0
Pradeep
Top achievements
Rank 1
answered on 24 Jun 2009, 07:25 AM
Hi Vlad,
           Thanks for your quick response.I visited the link which you sent,I am little bit confused.Can you send me the sample code for retrieve the data from datbase using webservice or any other method(VB.net is preferable).
0
Vlad
Telerik team
answered on 24 Jun 2009, 07:46 AM
Hi Pradeep,

VB code can be found in this example - you can check the attached screenshot.
In this particular case the grid will retrieve data using ADO.NET DataService which is the easiest way in Silverlight 2. In Silverlight 3 you can use RIA services - more info here:
http://blogs.telerik.com/vladimirenchev/posts/09-04-16/full_support_for_domaindatasource_with_radgridview_for_silverlight_3.aspx

Kind regards,
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
Pradeep
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Pradeep
Top achievements
Rank 1
Share this question
or