Re: GRID COLUMN ...

From: Lee Mitchell (Leemi_at_online.microsoft.com)
Date: 08/03/04


Date: Tue, 03 Aug 2004 13:48:15 GMT

Hi:

I had to use this code to remove the first column in a grid in VFP 6.0 SP5:

thisform.grdcust2x.column1.visible=.f.
thisform.grdcust2x.column1.width=0
thisform.refresh

The key point is to set the Width of the column of the grid to 0. Without
this line, the column is not removed.

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here: http://msdn.microsoft.com/vfoxpro/

*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
   http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
   http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
 
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
   - VFP5 Mainstream Support retired June 30th, 2003
   - VFP6 Mainstream Support retired Sept. 30th, 2003

>Hi,

>It works fine in VFP8: thisform.grid1.column1.Visible = .f.

>Gerben Kessen

<soft> wrote in message news:OZJFJzGeEHA.212@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I m using Vfp6.0 and when i set the property of column
> visible=.f.
> then Header is not showing. but column is showing
> any suggetion..
>
> thanx
>



Relevant Pages

  • RE: Simulating Linked Grids on different pages...
    ... >grid but I got an out of range error when I tried that. ... > Purchase VFP8 here: ... > Keep an eye on the product lifecycle for Visual FoxPro here: ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Import text to editbox from file
    ... > it is better to work with the htm file It doesn't matter, ... There are 2 basic choices for showing the information, grid and form. ... information about a single record. ...
    (alt.comp.lang.borland-delphi)
  • Re: How to detect if Scroll Bars are visible on a Datagrid Control
    ... is if you need to refresh the grid after changing ... ' Vertical scroll bar must be showing. ... ' which assures that there is no horizontal scroll bar showing. ...
    (microsoft.public.vb.controls)
  • RE: Simulating Linked Grids on different pages...
    ... I know there are some bugs when you refresh grids in VFP 8. ... the VIEWABLE rows that this happens. ... > Purchase VFP8 here: ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Joining the lines in a Line Chart with Null data
    ... The grid across the bottom shows the month numbers The grid up the ... I can force all 12 month numbers to appear in the Row Headers of the ... crosstab query on which the Row Source of the Chart is based by using a left ... months 1 to 12 and the other showing all the years in the database. ...
    (microsoft.public.access.reports)