It's automatic, when you add a new column and then you set the fieldname column's property, the column gets resized according to the field specification (Field display width, or column's title the bigger it's used)
An automatic resize based in cell content like in TStringGrid still it's possible but it needs check every record in the dataset, for small datasets maybe it's not a problem but for big ones, retrieved from remote servers it's not an option. And the problem is that dbgrid doesn't knowbefore hand what kind of database is attached to. Based in the premise that the user 'knows' I could add a function that retrieve every record in the database and then it can get a best fit for column width. What do other think about this, it's a good idea? Jesus Reyes A. --- Micha³ Wojtaszek <[EMAIL PROTECTED]> escribió: > eeee.... ekhm, ekhm.... only one thing... witch function I should > use to > do that? > > Sorry > > Michal > > __________________________________________________ Correo Yahoo! Espacio para todos tus mensajes, antivirus y antispam ¡gratis! Regístrate ya - http://correo.yahoo.com.mx/ _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
