Search code examples
c#t-sqldbaccess

How to get data in SQL server into a datagrid


I have a sql server database that I want to bring into a datagrid. I want to use DBAccess as the way to do this. As of right now I have: _dba = DBAccess("server=server;database=database;user=user;password=password") I need to write this data into a dataset and be able to insert and update into the database. Can anyone point me in the right direction for some tutorials or give me some advice on this? Any help is appreciated. Thanks.


Solution

  • http://www.dotnetspider.com/resources/41983-ADO-Net-Architecture.aspx

    it is about ado.net disconnected architecture. in the example they write a select query and give the result to a dataset. and then show it in a datagridview. i hope it helps.