Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TAdvStringGrid
How to turn off the gradient and override the fixed column color

This code snippet shows how you can turn off the gradient and override the fixed column color:
procedure TForm4.AdvStringGrid1GetCellColor(Sender: TObject; ARow,
  ACol: Integer; AState: TGridDrawState; ABrush: TBrush; AFont: TFont); 
begin
  if Acol = 0 then
    ABrush.Color := clRed;
end;

procedure TForm4.FormCreate(Sender: TObject); 
begin
  advstringgrid1.look :=glSoft;
end;