Autor Beitrag
Hagbard
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 142

Win XP Home / Pro
D7.1 Architekt
BeitragVerfasst: Mo 14.06.04 14:38 
Hallo,

ich habe ein gefülltes cxGrid ( von Developer Express ), wenn dort eine Zeile markiert wird, möchte Ich,
das automatisch Edit Boxen (TEdit) mit den entsprechenden Werten aus diesem Record gefüllt werden.

EDIT: Ich bin ein Hirsch... so gehts.... :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TVotersDataForm.DBTableViewFocusedRecordChanged(
  Sender: TcxCustomGridTableView; APrevFocusedRecord,
  AFocusedRecord: TcxCustomGridRecord;
  ANewItemRecordFocusingChanged: Boolean);
begin
  // Focused Record Changes --> Fill Edit Fields
  if bDataAvailable = True then begin
    edName.Text     := AFocusedRecord.Values[0];
    edLastName.Text := AFocusedRecord.Values[1];
  end;

end;


Viele Grüße,
Christian

Moderiert von user profile iconTino: Code- durch Delphi-Tags ersetzt.

_________________
I haven't failed, I just found 10,000 ways that won't work!