• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1326
  • Last Modified:

Dbgrid with dblookupcombobox...

I have the tms DBAdvGrid and i present some data from a table of my database.I want to know if there is a way to embed a dblookupcombobox into the first field.

for example this is some fileds to the DBAdvGrid1
Name | Age | Area |
ddfd   | 22  . |lolfd...|
..........|.........|........|

here in the Name field i want when the user click on this field to apear a dblookupcombobox with some data that i will fill in the dblookupcombobox.
0
Alex
Asked:
Alex
  • 7
  • 6
1 Solution
 
diniludCommented:
use after scroll event


procedure TForm1.Table1AfterScroll(DataSet: TDataSet);
begin
  DBLookupComboBox1.KeyValue:=Table1.FieldValues['KeyField'];
end;
0
 
AlexSoftware EngineerAuthor Commented:
Hi dinilub,

No this is not what i want, i'll try to be more clear.

I just want to "insert" the dblookupcombobox into the field of the dbgrid like to be one thing the field and the combobox and when i click on the field to open the dropdownlist of the combobox.

I can do this with a simple way on the design to put on the field the combobox but even this is not that i want.I want to see if i have the abillity to embed in the tms dbgrid some external components like dblookupcombobox or anything else.

Thanks in advance.
0
 
diniludCommented:
Still i don' t get you full.

i think VolDBGrid is a smaple for you.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
AlexSoftware EngineerAuthor Commented:
VolDBGrid  is one more third party dbgrid component?
0
 
diniludCommented:
sorry
0
 
AlexSoftware EngineerAuthor Commented:
???
0
 
diniludCommented:
ok. you want to use DBAdvGrid?
0
 
AlexSoftware EngineerAuthor Commented:
yes i want to use dbadvgrid of tms software...
0
 
diniludCommented:
i don,t have dbadvgrid component.
But basically  these properties are with coloum property.

i volgadbgrid there is picklist and pick value list
0
 
diniludCommented:
Ok Now i have the trial version
0
 
diniludCommented:
select your dbadvgrid.
open property window
Select Columns
Open Column edit window.
Select the column
Set Editor property edComboList
Set FielsName.

You can add the combo items in "ComoItems" property (string Gride);
at run time  you can add data like this
      dbadvgrid.columns[columnIndex].ComoItems.clear;
      dbadvgrid.columns[columnIndex].ComoItems.add('');

if you want to take data from a table, then you want to define the field as "fkLookup" field.

Sorry for my bad english
0
 
AlexSoftware EngineerAuthor Commented:
witch tms version did you download?
0
 
AlexSoftware EngineerAuthor Commented:
thank you dinilud ;)
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now