Jump to content

Recommended Posts

Posted
Hi mehmet pak.
 
If I understand correctly. You want to freeze the first row?
 
Honestly I could not do it in the stringgrid ...
If anyone can, it would be good ...
 
 
But, in my opinion, you can use two unistringrid on one panel.
   
   1. Unistringgrid1: rowCount = 1, Align = AlTop, you need to find the height of ... (e.g. Height = 24)
   2. Unistringgrid2: rowCount = 100, Align = AlClient
 
procedure TMainForm.UniStringGrid1MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  if UniStringGrid2.Col <> UniStringGrid1.Col then UniStringGrid2.Col := UniStringGrid1.Col;
end;

procedure TMainForm.UniStringGrid2MouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
  if UniStringGrid1.Col <> UniStringGrid2.Col then UniStringGrid1.Col := UniStringGrid2.Col;
end;

post-906-0-83362700-1382685250_thumb.png

 
 
Sincerely ...

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...