Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread StretchToFit On Last Column In TGrid Causes It To Disappear
Mon, Apr 23 2018 12:11 AMPermanent Link

Frederick Chin

I have a grid with a number of columns. If I attempt to set the StretchToFit for the last column to True in design or runtime, it disappears.

However, if the columns are all visible in the grid (and the last column's width is not to the edge of the grid), changing the property does not cause the column to go missing.

How do I resolve this? The condition is shown in the attached screenshot.

--
Frederick



Attachments: stretchtofit.png
Tue, Apr 24 2018 2:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frederick,

<< I have a grid with a number of columns. If I attempt to set the StretchToFit for the last column to True in design or runtime, it disappears.  >>

You can't enable that property if the grid columns encompass more space than the client width.  The purpose of the StretchToFit property is to allow the last column to stretch to fit the client width when the sum of all of the grid columns is *less than* the client width.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Apr 24 2018 7:22 PMPermanent Link

Frederick Chin

Tim,

/*
You can't enable that property if the grid columns encompass more space than the client width.  The purpose of the StretchToFit property is to allow the last column to stretch to fit the client width when the sum of all of the grid columns is *less than* the client width.
*/

Noted. Thanks.

--
Frederick
Image