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 |
Can I make calls to Delphi code from C or C++?
How to Create a file association for my application?
How to Get the Windows version in code?
How to Print a web page using the HTML control?
MS SQL error '17824 Unable to write to ListenOn connection ' what does this error mean?
'Trying to append data to a non-partial dataset' . what does this error indicates?
How to close your application using the Escape key?
How to Converta RGB color to a CMYK color?
How to insert contents of a file at current position in TMemo?
Can a Delphi Application Connect to an InterBase Database on Any Platform?
How to Create a custom word break procedure?
How to print an HTML document from inside of your application?