If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > DBNavigator problem in delplhi

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-15-09, 06:28
helloise helloise is offline
Registered User
 
Join Date: Oct 2009
Posts: 6
DBNavigator problem in delplhi

i have a DBGrid on my form with a navigator...how come the insert,delete,modify etc buttons are greyed out...i can ONLY up,down,first and last?????

thanks
Reply With Quote
  #2 (permalink)  
Old 10-15-09, 15:32
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,307
Your grid must contain all of the columns of either a PK (Primary Key) or a Unique index. They don't all need to be displayed, just retrieved. Otherwise, the grid doesn't have any way to safely submit your changes.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Old 10-16-09, 03:30
helloise helloise is offline
Registered User
 
Join Date: Oct 2009
Posts: 6
it does contain all of the fields...
Reply With Quote
  #4 (permalink)  
Old 10-16-09, 09:57
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,307
About 98 percent of the time, a first time user either doesn't declare either a unique index or a primary key within the database and have every column in that index or key in their grid. There are other ways to disable the updatability, but no key is by far the most common.

You haven't given enough information for me to figure out what else you could be missing. Without seeing your code, I'm not much help now.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #5 (permalink)  
Old 10-16-09, 10:17
helloise helloise is offline
Registered User
 
Join Date: Oct 2009
Posts: 6
its not so much the coding..its the 2010 IDE that i am struggeling to understand and grasp...it is so different from VS!
there is not enough/detailed tutorials or videos that can help with the data aware aspect/components of the 2010 IDE..

but thanks anyway...
Reply With Quote
  #6 (permalink)  
Old 10-16-09, 15:19
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,307
Check the registration confirmation email for a link to the forums. I believe that the production confirmation email has the link at the lower left, but I can't personally confirm that. There is a lot of information, and many folks that will gladly help you in the registered user forums.

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On