Hi,
I have an example of bind datagrid using XML and using database with web services.
But anyone can help me to bind datagrid using database WITHOUT web services ?
Thanks and Regards,
Rohit
Bind Datagrid using Database in Silverlight
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Bechir BejaouiRank #144 · 15.9K reputationPosted Sep 20, 2010, 12:36 PM EDT
Rohit Rathod3 reputationPosted Sep 20, 2010, 8:23 PM EDT
Bechir BejaouiRank #144 · 15.9K reputationPosted Sep 21, 2010, 2:00 AM EDT
This kind of grid is technically called gridview.
The cleanest way is to add an SQLDATASource to your aspx page configure it and bind the grid view to it like this example bellow
runat="server"
DataSourceMode="DataReader"
ConnectionString="<%$ ConnectionStrings:MyNorthwind%>"
SelectCommand="SELECT FirstName, LastName, Title FROM Employees">
runat="server"
DataSourceID="SqlDataSource1">
Of corse if you plan to bind to access or other data sources that sql server then substitue the sqldatasouce by oledbdatasource