Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am facing a problem in displaying the data in gridview control while connection has been made.
Can anybody help me out for this particular problem.
And please help for connecting ms access 2007 with C# and for displaing it in gridview control.

Thanks&Regards
Abhishek
[DELETED]@gmail.com

[edit]Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know.
Don't ask for the complete code: we do not do your homework for you (deleted request). - OriginalGriff[/edit]
Posted
Updated 26-Mar-11 0:54am
v2
Comments
OriginalGriff 26-Mar-11 6:55am    
What have you tried? Anything?

You save the ms access database is Access 2002 - 2003 Database.
Now you try this.
 
Share this answer
 
Comments
Dalek Dave 26-Mar-11 8:29am    
Good Call
I would say that there are tons of example in the net just waiting to be googled. Here's one quite goog walkthrough: http://www.switchonthecode.com/tutorials/csharp-tutorial-binding-a-datagridview-to-a-database[^]
 
Share this answer
 
Comments
Dalek Dave 26-Mar-11 8:30am    
Good Link
Wendelius 26-Mar-11 8:31am    
Thanks :)
VB
using System.Data.OleDb;
OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+"E:\Temp\Database1.accdb"); 
con.Open();
 
Share this answer
 
v2
Comments
Dalek Dave 26-Mar-11 8:30am    
Good Answer
[no name] 28-Mar-11 1:04am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900