troubleshooting Question

fields pointing to Listbox, combobox items

Avatar of KarlisB
KarlisBFlag for Latvia asked on
Delphi
26 Comments2 Solutions537 ViewsLast Modified:
Greetings Experts.
First, forgive for my english, hope i'll explain properly what i need.
Seconds, I have i little dilemma.

for example, I have a dbgrid, sometimes with more than 1000 records(rows)
there is a field named 'id_group' containing an id number.
I want set dbgrid so that on row click event combobox's  selected item changes depending on id_group in selected dbgrid row.

for now i have used 2 ways to solve this:
    1:   compare group name with combobox item strings, which is terible especialy if used foreign characters it does call errors or bugs.
    2:  making an array  , setting table id as an index , holding  item index etc .... which is stupid thus when table id will eventualy go out of array max range...

any ideas or suggestions how to accomplish this? i bet there shold be an easier solution.
thank you.
ASKER CERTIFIED SOLUTION
Ferruccio Accalai
Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 26 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 26 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros