Code for vb.net and ms access

Closed
nithi - Mar 21, 2010 at 01:25 PM
 mafe - Oct 6, 2010 at 10:22 AM
i want d code for displaying the data from database into datagrid
Related:

3 responses

ouchayan Posts 13 Registration date Saturday September 5, 2009 Status Member Last seen August 12, 2010 14
Aug 4, 2010 at 03:10 AM
cmd = New OleDbCommand(" select * from table")
adapter = New OleDbDataAdapter(cmd)
cmd.Connection = cnx
adapter.Fill(data, "table")
table = data.Tables("table")
DataGrid1.DataSource = table
14
Sohaib Lagahri
May 18, 2010 at 02:08 AM
Take the datagridview and right click for follwing the given option
you can get connection with msacess by datagrid.
3
datagrid property:
datasource = name of the ado

and put an ado object in the form where your datagrid has been placed
1