How to Resize StringGrid Columns ?



How to Resize StringGrid Columns ?..

Answer / Ashwani Kumar Pal

To resize columns in a TStringGrid in Delphi, you can use the ColumnWidth property. Set the desired width for each column using the ColumnWidth property indexed by the column number.nnExample:nnprocedure TForm1.FormCreate(Sender: TObject);nbeginn StringGrid1.ColumnWidth[0] := 100;n StringGrid1.ColumnWidth[1] := 200;nend;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

Can I make calls to Delphi code from C or C++?

1 Answers  


How to Create a file association for my application?

1 Answers  


How to Get the Windows version in code?

1 Answers  


How to Print a web page using the HTML control?

1 Answers  


MS SQL error '17824 Unable to write to ListenOn connection ' what does this error mean?

1 Answers  


'Trying to append data to a non-partial dataset' . what does this error indicates?

1 Answers  


How to close your application using the Escape key?

1 Answers  


How to Converta RGB color to a CMYK color?

1 Answers  


How to insert contents of a file at current position in TMemo?

1 Answers  


Can a Delphi Application Connect to an InterBase Database on Any Platform?

1 Answers  


How to Create a custom word break procedure?

1 Answers  


How to print an HTML document from inside of your application?

1 Answers  


Categories