TwwDBGrid rows of varying height

Comments

1 comment

  • Roy Woll

    Unfortunately this is not supported. You can use cell hints if you wish for the user to move the mouse over a cell and show its contents (dgShowCellHint) in conjunction with using OnCreateHintWindow.

     

    procedure TGridHintIniDemo.wwDBGrid1CreateHintWindow(Sender: TObject;
      HintWindow: TwwGridHintWindow; AField: TField; R: TRect;
      var WordWrap: Boolean; var MaxWidth, MaxHeight: Integer;
      var DoDefault: Boolean);
    begin
      WordWrap := True;
      if (AField is TBlobField) then
         MaxWidth := 100;
      MaxHeight := Screen.Height;
    end;

    The user can also resize the rows himself using dgRowResize.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk