Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding Grid Header
Message
From
01/10/2001 01:07:22
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00562100
Message ID:
00562391
Views:
21
Hi Vlad,
How about using an OLECONTROL here. Flex Grid gives full flexibility of controlling the cosmetics.

sanjay.


>Hi!
>
>>Vlad,
>>I don't remember VFP3 behaviour or even if headeheight existed there or not.
>>If we're talking about VFP5.00 and later then I never encountered problem in setting headerheight to 0. It completely hides the header.
>
>The problem was in VFP5.0. I found its description - when setting header height to 0, it disappears, but when grid is focused, little 1-dot height headers blink for a moment. When process of grid refreshing is slower, this is specially visible.
>
>>Also putting say a container in front of header in VFP5.00 and up works too.
>
>Well, you can put grid into the container and cut it headers by the ocntainer edge - here I agree with you if you meant this approach. However, I meant putting container over the header when grid and that container are in different containers or on the same containership level. Just do a simple test in VFP6 (do not know about VFP7). Even simple right click on the grid header cause a container move behind the grid header no matter how many times you issued ZORDER() for that container before.
>
>>I never saw top-left square insisting to stay there either.
>
>Again, make a simple test. On my form I see 2 extra dots just above the record marks and deletion marks that seems is a leftover of drawing of edges of the top-left square area in the grid.
>
>>Cetin
>>
>>>Hi!
>>>
>>>Ceting, in more earlier versions of VFP when setting HeaderHeight to 0, it does not hide headers completely. I remember, once this was known and sad problem in my application. Now setting headerHeight to 0 and AllowHeaderSizing to .F. allow to get rid of headers, but not completely - my VFP6SP5 still try to show a top-left square box as a single line...
>>>
>>>Nadya, Grid header draw self always above other VFP controls. You can hide grid header or put something above it by putting another Window inside of the form (DEFINE WINDOW ... IN WINDOW), but this also has many other problems, in particular, it is impossible to get that window fire events in a modal form.
>>>
>>>>>Hi,
>>>>>
>>>>>Is it possible to create a grid that does not display a header row?
>>>>>
>>>>>I set grid:headerheight to 0, and all header:caption to (none), and header continues to display.
>>>>>
>>>>>Suggestions?
>>>>
>>>>Jeff,
>>>>With header captions or not headerheight = 0 works. Probably code is setting it back to something > 0. Try to see if that's the case putting a temporary commandbutton with click code :
>>>>thisform.mygrid.headerheight=0
>>>>Cetin
Sanjay Dhiraj Patel

MCSE, MCDBA

Net2Biz (Thailand)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform