-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Dayal
Message 3 in Discussion
Hi
Baburaj
Try
this.
'--------------------------------------------------------------
Dim sConstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\My
Documents\Dot Net Projs\DB\sample.mdb;"
Dim sql As String
= "select * from sample"
Dim myConnection As New
System.Data.OleDb.OleDbConnection(sConstring)
Dim dsDataset As New DataSet
Dim daDataAdaptor As New
OleDb.OleDbDataAdapter(sql, myConnection)
daDataAdaptor.Fill(dsDataset, "Member1")
DataGrid1.DataSource = dsDataset
DataGrid1.DataMember =
"Member1"
'---------------------------------------------------------------
Cheers'
Dayal
-----Original Message-----
From: DotNetSaavy (Mr.BabuRaj)
[mailto:[EMAIL PROTECTED]
Sent: 10 September 2003
11:13
To: BDOTNET
Subject: Urgent - Displaying Data in
Datagrid
New Message on BDOTNET
Urgent -
Displaying Data in Datagrid
Reply
Reply to Sender Recommend
Message 1 in
Discussion
From: DotNetSaavy (Mr.BabuRaj)
Guys,
My problem is simple.I have a datagrid control placed on
the form.I have an table in the access database.Now all that I
need is code to display the contents of this table in the
datagrid.What are the steps involved ?.How do I configure my
Datagrid control to display the records.Please reply.
Thanks
BabuRaj
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]