fields pointing to Listbox, combobox items
Posted on 2009-12-17
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.