Senhores, 

Alguem tem uma formula para calcular a largura ideal das colunas em um DBGrid 
em tempo de execucao? A consulta que alimenta o DBGrid produz campos diferentes 
de cada execucao.

No momento, isso funciona:

for i:= 0 to DBGrid1.Fieldcount-1 do
      DBGrid1.Columns[i].Width:= Ceil(DM.Q_Report.Fields[i].DisplayWidth * 2.5) 
;

 .... mas gostaria de ter uma formula utilizavel.  Ficaria muito grato por 
quaisquer sugestoes.


Att.

Steve


***************************************************************************

This e-mail and any files transmitted with it are confidential. If you are 
not the intended recipient, any reading, printing, storage, disclosure, 
copying or any other action taken in respect of this e-mail is prohibited 
and may be unlawful. If you are not the intended recipient, please notify 
the sender immediately by using the reply function and then permanently 
delete what you have received.

Content of emails received by this Trust will be subject to disclosure 
under the Freedom of Information Act 2000, subject to the specified 
exemptions, including the Data Protection Act 1998 and Caldicott Guardian 
principles.

This footnote also confirms that, unless otherwise stated, this email 
message has been swept by Sophos Anti-virus for the presence of computer 
viruses.

  ** Please consider the environment before printing this email. **

***************************************************************************

Responder a