Jump to content


Photo

How to set individual row rowheight in NG6?


  • Please log in to reply
1 reply to this topic

#1 BelangerC

BelangerC

    Senior Member

  • Members
  • PipPip
  • 221 posts
  • Location:Richmond, CA USA
  • Interests:Alternative medicine, programming for

Posted 07 June 2023 - 11:18 AM

Hi, Boki:

 

I have a NG5 routine, GetBestFitRow which sets the passed row's height.

NG6 has a Grid.RowHeight which sets the grid wide row height. 

How do I set an individual row's height in NG6?

 

Thank you,

Chuck

 

 WITH GridView1 DO
  BEGIN
    // calc with bold text, since I use this for hot tracking/selected cell change
 
    Columns[ACol].Font.Style := [fsBold];
    BestFitRow(ARow);
    Columns[ACol].Font.Style := [];
    // use - because Size is negative
    RowHeight[ARow] := RowHeight[ARow] - (1 * Columns[ACol].Font.Height);
  END


#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 07 June 2023 - 03:09 PM

Hi,

 

You can use Height property of a row: http://help.bergsoft.../TNxRow6/Height


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users