TwwDBGrid rows of varying height


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);
      WordWrap := True;
      if (AField is TBlobField) then
         MaxWidth := 100;
      MaxHeight := Screen.Height;

    The user can also resize the rows himself using dgRowResize.

    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk