Board index » cppbuilder » Set the column width of a StringGrid

Set the column width of a StringGrid


2008-02-18 10:54:09 AM
cppbuilder74
Does anyone know how to set the columns (specific ones) width of a StringGrid at runtime
thanks
Freddy
 
 

Re:Set the column width of a StringGrid

Hi freddy
freddy mas says:
Quote

Does anyone know how to set the columns (specific ones) width of a StringGrid at runtime
StringGrid->Cells[int ACol][int ARow] = "YourString";
Kind regards
Asger
 

Re:Set the column width of a StringGrid

"freddy mas" < XXXX@XXXXX.COM >wrote in message
Quote
Does anyone know how to set the columns (specific ones) width of a
StringGrid at runtime
StringGrid1->ColWidths[0]=100;
StringGrid1->ColWidths[1]=200;
StringGrid1->ColWidths[2]=300;
Sets the 1st column width to 100, the 2nd to 200 and the 3rd to 300. HTH,
--
Mark Jacobs
DK Computing
www.dkcomputing.co.uk
 

{smallsort}

Re:Set the column width of a StringGrid

Hi
says:
Quote
"freddy mas" < XXXX@XXXXX.COM >wrote in message
news:47b90161$ XXXX@XXXXX.COM ...
>Does anyone know how to set the columns (specific ones) width of a
>StringGrid at runtime

StringGrid1->ColWidths[0]=100;
StringGrid1->ColWidths[1]=200;
StringGrid1->ColWidths[2]=300;

Sets the 1st column width to 100, the 2nd to 200 and the 3rd to 300. HTH,
Happy to see that somebody reads better then me..
Kind reagrds
Asger