Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide grid Column

Status
Not open for further replies.

OraWiz

Programmer
Aug 17, 2003
37
IN
I have a particular (VFP6) grid column, which I don’t want to show at running time. I have made its column’s visible property false and width to 0. But it is visible (just as a column) at the time of running the form. How can I hide this particular column.
Rgds
Sebastian
 
Hi Sebastian,

1. If you have set the columns width to 0, then the column will not appear. You should be careful to set the ColumnN.Width = 0 and not the CoulumnN.Text1.Width
If you feel the columns 0 width still shows the border line making the line separating the columns thicker, you can push that column to the end, with the column order property set to be equal to columncount property of the grid.

2. If you want to remove the column altogether, and dont want that column at all, then..
WITH ThisForm.Grid1
.removeObject("Column5")
.Refresh()
ENDWITH

:)

____________________________________________
ramani - (Subramanian.G) :)
When you ask VFP questions, please add VFP version.
 
Hi Ramani,
I am doing the same thing what you are saying. But the column is displaying at the end of of the grid. with out any data (Just as a column). That is what confusing me...
Rgds
Sebastian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top