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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bechir BejaouiPosted Sep 21, 2010, 6:00 AM
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
Rohit RathodPosted Sep 21, 2010, 12:23 AM
Bechir BejaouiPosted Sep 20, 2010, 4:36 PM