Hi delphians!

  I have a form with a DBGrid, a DBEdit and a ComboBox. The grid displays
a code number in the first column and the name corresponding to the code
in the second one. The code number is a field in the query the grid is
associated to. The name is a calculated field. In its OnGetText event
handler, the name is located with the code number as a key in a different
table. The DBEdit shows the code number in the current record in the query
and the ComboBox shows the coresponding name. Both are used to edit the
current record. If the DBEdit changes, the ComboBox updates and viceversa
(of course, this is accomplished in the corresponding OnChange event
handlers). The problem is that the "name" column in the grid only updates
the first time the DBEdit (or the ComboBox) changes. What could be
happening? It's there any Refresh method for the DBGrid or the column or
the specific field in the current record?

  Thanks in advance.

  Juan Manuel Gomez Ramos
  Computer Science student at Havana University
  email:<[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
  eFax:(707) 313-0329
  internet:http://cronos.freeservers.com

  Hope is faith holding out its hand in the dark.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to