Autor Beitrag
WEBSTER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Mo 24.10.05 22:35 
Salute,

wie bekomme ich den "Fieldname" bei ColumnHeaderClick im QuantumGrid?

Ich dachte an soetwas:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TSearch_Form.such_cxGridDBTableView1ColumnHeaderClick(
  Sender: TcxGridTableView; AColumn: TcxGridColumn);
begin
 ShowMessage(AColumn.DataBinding.FieldName);
end;




Funktioniert natürlich nicht. Aber wie lautet es richtig...?

THX
WEBSTER

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

_________________
Wer etwas anders macht, aber nicht besser, der sollte besser etwas anderes machen.
Lake
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78


D6 prof., Delphi 10.2 Tokyo
BeitragVerfasst: Di 25.10.05 05:49 
Probiere es mal nur mit
ausblenden Quelltext
1:
ShowMessage(AColumn.FieldName);					
WEBSTER Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Di 25.10.05 08:39 
Salute,

das funktioniert leider auch nicht.....


WEBSTER

_________________
Wer etwas anders macht, aber nicht besser, der sollte besser etwas anderes machen.
Milhouse2500
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33

Win 2000, Win XP
D5 Prof, D7 Enterprise
BeitragVerfasst: Mi 26.10.05 17:24 
Hi

probier mal:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
procedure TForm1.cxGrid1DBTableView1ColumnHeaderClick(
  Sender: TcxGridTableView; AColumn: TcxGridColumn);
begin
  ShowMessage(TcxGridDBColumn(AColumn).DataBinding.FieldName);
end;


Milhouse
WEBSTER Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 94



BeitragVerfasst: Mi 26.10.05 20:31 
Salute,

danke. Das wars !

WEBSTER

_________________
Wer etwas anders macht, aber nicht besser, der sollte besser etwas anderes machen.