?
Solved

How to connect ".dbf" file using C#

Posted on 2006-05-23
8
Medium Priority
?
694 Views
Last Modified: 2012-05-05
I am very new with this application and i need help from the experts :-),
i want to fill my datagrid with records from my existing .dbf file. but i do not know how.

I have a "emprec.dbf" file located in "c:\database" and i want all the records to be displayed in my datagrid, how should i do it? Can anybody teach me? I will be very much happy if anybody here can help me.

Thanks a lot in advance.
0
Comment
Question by:girlswants_me
  • 3
  • 2
5 Comments
 

Author Comment

by:girlswants_me
ID: 16741311
anybody?
0
 
LVL 28

Expert Comment

by:2266180
ID: 16741351
this is not a chat room. so it might take a few moniutes upto a few hours until someone replies. you should be patient more about it ;)

you can try to use ODBC. but before I go into detail: what is your experience with C#, with databases, with C# with databases, and about ODBC. I don't want to waste time explaining stuff you already know ;)
0
 

Author Comment

by:girlswants_me
ID: 16741374
Consider it, this is my First day, my first time using C#. I am a Delphi developer yesterday :-)
Thanks.
0
 

Author Comment

by:girlswants_me
ID: 16741404
By the way, no need to teach me ODBC. Just the C# procedures on how to connect my Datagrid. or some source codes if it is needed.

Thanks in advance.
0
 
LVL 28

Accepted Solution

by:
2266180 earned 200 total points
ID: 16741642
looking for a connection string I found a MSDN article that might be concise enough:http://support.microsoft.com/kb/310988/en-us
and an example connection string:
http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=792 (adapt to C#)
let me know if you need further help with the odbc (don't forget to mention the provider/manufacturer of the dbf file (is it dbase/foxpro/etec) )
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question