BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

2 changes in a DBGrid

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Michael Sørensen
Guest





PostPosted: Thu Apr 05, 2007 2:34 pm    Post subject: 2 changes in a DBGrid Reply with quote



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?
Back to top
Vesa Lappalainen
Guest





PostPosted: Thu Apr 05, 2007 2:34 pm    Post subject: Re: 2 changes in a DBGrid Reply with quote



Michael Sørensen <ms1 og snabela samt skindbeni punktum dk> wrote:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.