Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Fix a DBgrid Column"

518 views
Skip to first unread message

Forum de Delphi (Borland)

unread,
Mar 5, 1998, 3:00:00 AM3/5/98
to

Hi Friends,

Can I fix a DBGrid Column?

Regards,

Paulo Jorge
p...@nitnet.com.br


Tulius Lima

unread,
Mar 5, 1998, 3:00:00 AM3/5/98
to Forum de Delphi (Borland)

> Can I fix a DBGrid Column?

Olá Paulo,

If by 'fix' you mean not to resize a dbgrid column, yes it is
possible.
Take a look at the grid's Options property and set dgColumnResize to
FALSE.
If that was not what you meant then define FIX.

[]s do amigo
Tulius Lima


Eric Schokker

unread,
Mar 5, 1998, 3:00:00 AM3/5/98
to

"Forum de Delphi (Borland)" <p...@nitnet.com.br> wrote:

Much easier and flexible (with thanks to the Borland TI docs):

Declare a type THack = class(TDBGrid). Then in run-time, do
THack(DBGrid1).FixedCols := 2.
Of course, you'd have to set it to 1 if you exclude dgIndicator from
the Options in the grid component.
This code fixes the first collumn

HTH, Eric

>Hi Friends,


>
>Can I fix a DBGrid Column?
>

>Regards,
>
>Paulo Jorge
>p...@nitnet.com.br
>
>
>

---------------------------------------------------------------
Eric Schokker,

Remove *NO-Spam* from Email address

E-mail: Eric.Schokker@*NO-Spam*ntu-beheer.nl

Paul Andonov

unread,
Mar 6, 1998, 3:00:00 AM3/6/98
to

If you want to fix a column so that it is always visible, then take a
look at the grid component that comes with RX Lib. It has a FixedCols
property. The URL is rx.demo.ru.

Cheers,
Paul.


0 new messages