Code for vb.net and ms access

Closed
nithi - 21 Mar 2010 à 13:25
 mafe - 6 Oct 2010 à 10:22
i want d code for displaying the data from database into datagrid
Related:

3 responses

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

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