Go Premium for a chance to win a PS4. Enter to Win


how to navigate in dbgrid

Posted on 2003-11-05
Medium Priority
Last Modified: 2010-04-05
hi iam using delphi7 with ado2.5 and access database.i am using dbgrid and able to view the data from database.But iam not able to edit the value in dbgrid and save it to database.iam not using componets to connect database.i have connected through coding to connect to database and i am using adodb.recorset for moving the record.any ony help me out to edit in dbgrid and save the data to the access database using codes.if u send me sample codes it will be more useful to me.thank u
Question by:abunectar

Expert Comment

ID: 9691147

I have a sample 11KB (source code in delphi7) I wrote for you to use Access database using Ado components, like ADOTable, ADOConnection, DBNavigator.
tell me your E-mail to send it for you.

hope to solve your problem.


Author Comment

ID: 9692188
hi mehdi
if i use components, the database path will  be static  and after making package and deployment and run in client system how can we specify the path.i think it will show error.how can we over come that error.any solutions.my email-id-abuthahir@neccyber.com

Accepted Solution

Ray_Adams earned 80 total points
ID: 9692262
why is will be static?
For exmaple i have small application which use ADO and Access database, at design time i use direct path to database, but when i create setup package, i recompile project where i change ConnectionString for ADOConnection to this one.

Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=%s;Mode=Share Deny None;Extended Properties="";Persist Security Info=False;Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False
Look at Data Source=%s;
At main form creating procedure i do this.

so you can use any kind of components like ADOQuery for editing you data, why no to try it?

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

886 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