Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Column hide & lock size
Message
From
16/11/2002 10:40:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00723546
Message ID:
00723547
Views:
7
Hi Mel

1) I think you need to put the test for whether a column should be visible or not in the COLUMN.INIT event. This should then have THIS.VISIBLE = .T. or .F.

2) To prevent a column from being resized set the COLUMN.RESIZABLE property to .F.. This property appears under the "Other" tab of the properties window.

Alternatively, you can also allow the user to resize the column but then use the COLUMN.RESIZE EVENT to test whether the new size is less than what you will allow and, if so, reset it to your own COLUMN.WIDTH.

3) You may also be interested in the COLUMN.MOVABLE property.

Jos


>Perhaps someone can help me with this one. I have a Grid, and in its Init() I determine rather or not two of the Columns of the Grid are required.
>
>If they are not required, I don't want them to show up in the Grid at all. I have set in the grid.Init() its Grid.Column1.Visible = .F., and its Grid.Column1.Width = 0. However, the Grid still opens up with a blank column. How in this situation can I have the Grid open up without the blank column showing up at all? Is there a better way to drop this column altogether than the way I am doing?
>
>Also, is there a way to "lock" a column so that it can't be resized? or at least it can't be resized so small that the column contents can not be seen?
>
>Thanks for the help in advance - grids are not one of my stronger points.
>
>Mel Cummings
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform