I do something like:

in the registry,
save grid width or height (depending on alignment)
save fieldname and column index position pairs.
save fieldwidths

restore settings on form show
save settings on form close

you may also want to save the form top,left,width,height properties as well
as panels or splitters etc.

It would be easy enough to descend from tdbgrid and add the column
saving/restoring stuff.


regards,

Steve.

-----Original Message-----
From: Darren Bilby <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: Sunday, 25 April 1999 01:41
Subject: [DUG]: Grid Components..


>I need a dbgrid that will allow me to save a users format, ie if they
resize
>or re-organise the columns they will be that way the next time they restart
>the app.
>
>Anyone have some code, or know where I can get my hands on a decent
freeware
>dbgrid component?
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to