Discussion:
2 changes in a DBGrid
(too old to reply)
Michael Sørensen
2007-04-05 09:34:29 UTC
Permalink
Hi.

I'm a young guy from Denmark, who plays with Delphi for fun in my sparetime.

I have af DBGrid, but i'm not sattisfied with that.

I want two things, but I don't know how to start.

1. In the cells I want the text to be placed either in the center og bottom
in the cell. (vertical alignment). But the text always appears in the top.
How can i chance this.

2. I want the row heights to be smaller, but then the text can't be there
anymore. Can I change the margin / padding between the text and the cell
border to nothing?
Vesa Lappalainen
2007-04-05 10:07:16 UTC
Permalink
Post by Michael Sørensen
1. In the cells I want the text to be placed either in the center og bottom
in the cell. (vertical alignment). But the text always appears in the top.
How can i chance this.
2. I want the row heights to be smaller, but then the text can't be there
anymore. Can I change the margin / padding between the text and the cell
border to nothing?
Use the event for drawing the cell by yourself. Then you have full
control of how things appear.

Vesa

Loading...