Solved

Editable Lookup

Posted on 1997-04-18
4
306 Views
Last Modified: 2010-04-04
What do I need to do to make a lookup field within a dbGrid control editable?
0
Comment
Question by:colesr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 50 total points
ID: 1335466
I guess there's no way (or maybe not) of editing a lookup field from within a dbGrid. What you should do is to add your lookup table apart and then you'll be able to change it.
0
 

Author Comment

by:colesr
ID: 1335467
What do you mean when you say I should "add your lookup table apart?"  I have a seperate table object that acts as the source for the lookup column.  I even have that mapped to some edit fields and a dbNavigator for entering new rows into that table.

Maybe my question was misunderstood.  By editable, I simply mean that I want the user to be able to type as opposed to being forced to select from the list.  I call it editable because in PB to make a "lookup" field allow typing, you set the "allow editing" property to true.  I just can't find the correct property to set in Delphi yet.
0
 
LVL 2

Expert Comment

by:javiertb
ID: 1335468
If you're using paradox, try setting the lookup field within the table properties (Table Lookup) and not within the Fields Editor.
This way you'll be able to type whatever you want but only lookup values will be accepted (but you don't have a drop down list to chose from). I've already tried and it works.
0
 

Author Comment

by:colesr
ID: 1335469
Unfortunatly, My users have standardized on MS Access.  Besides, the whole point was to have both the list and the ability to type.

Oh well, I guess Delphi is just weak in this area.  Thanks for trying thought.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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