Autor Beitrag
SQLException
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 89

WinXP + D5 Enterprise
Win2k + D6 Personal
BeitragVerfasst: Mo 11.07.05 11:04 
die suche half leider nicht weiter.

ganz konkret habe ich in einem dbgrid eine (1) spalte, in jeder zeile ein buchstabe (also A, B, C usw.), wie kann ich jetzt einen klick auf z. b. das dritte feld, also "C" simulieren?
TomT
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 116

Suse 9.1 WinXP
D6 Pers
BeitragVerfasst: Mo 11.07.05 21:39 
Hi,

meinst du was in der Art?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm1.DBGrid1CellClick(Column: TColumn);
begin
  ShowMessage('hallo');
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  DBGrid1CellClick(DBGrid1.Columns[2]);
end;

_________________
...und da wurde mir klar, dass eine Toolbar keine Kneipe für Heimwerker ist.
SQLException Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 89

WinXP + D5 Enterprise
Win2k + D6 Personal
BeitragVerfasst: Di 12.07.05 08:46 
damit wird das feld angeklickt, welches gerade markiert ist, nicht "C".