Hallo,
geht das in Deine Richtung?
Delphi-Quellcode:
procedure TForm1.SetRowSelect (const Value : Boolean; const Grid : TDrawGrid);
var
l, t : Integer;
begin
l := Grid.Col;
t := Grid.Row;
Grid.Selection := TGridRect (Rect (l, t, l, t));
if Value then
Grid.Options := Grid.Options + [goRowSelect]
else
Grid.Options := Grid.Options - [goRowSelect]
end;
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
SetRowSelect (CheckBox1.Checked, StringGrid1);
SetRowSelect (CheckBox1.Checked, AdvStringGrid1);
end;
Gruß
[EDIT]Kein roter Kasten[/EDIT]