Jump to content

How to make one DBGrid data row thinner?


rgreat

Recommended Posts

38 minutes ago, rgreat said:

One row, not all of them.

 

Edit: Also, setting UniDBGrid.RowHeight:=5 does not change grid at all.

Hello,

try to set UniDBGrid.RowHeight = 2 (or 5) and on SQL.Text You can use html format, so You can show result in some rows with <h1>youcolumndata<h1> and other with <h3>yourcolumndata</h3>.

Different rows with different text format

  • Like 1
Link to comment
Share on other sites

6 hours ago, Sherzod said:

Which case, could you please explain in more detail? For what purpose?

I want to draw something like this:

image.png.f3bf0c8a6973ba99c68bfb6cb6fa58a0.png

I have this (work in progress):

image.thumb.png.5344dfcdee3e8694ccf5fe672b8adb9f.png

I need to create delimiters between data row groups.

I know, usually you can use Grouping  or cell coloring for that, but not in my case, as both of these are already used, and I still need to create extra delimiters between rows inside one conventional row group. 

On screenshot above I have grey empty rows acting as delimiters, but these are too thick to look good.

Link to comment
Share on other sites

The paintbrush is my friend. :D

Clipboard05.thumb.jpg.c172a7c19c96872b49389cd6a0ab1402.jpg

This is the desired result. More or less.

And if that could be done without adding extra data rows - I would be happy.

I imagine something could be done without extra rows, with cell CSS above or below the delimiter, but I'm afraid it would compromise something.

Link to comment
Share on other sites

8 hours ago, irigsoft said:

Hello,

try to set UniDBGrid.RowHeight = 2 (or 5) and on SQL.Text You can use html format, so You can show result in some rows with <h1>youcolumndata<h1> and other with <h3>yourcolumndata</h3>.

Different rows with different text format

Nope. Setting UniDBGrid.RowHeight:=5 does not change grid at all.

Maybe that's because I have some text in hidden column. But I can't change that text since it is used for row grouping.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...