Solved

Editable Lookup

Posted on 1997-04-18
4
297 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
  • 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
calling Tcolordialog in dll make the form disappear 8 112
HTML text in the body of an email (delphi code) 12 118
QRReport  TQrmemo vertical stretching 1 46
Working with hours 3 58
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

777 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