Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Header in Grid used as Listbox
Message
From
29/09/2005 17:14:39
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01054695
Message ID:
01054697
Views:
12
>Hello All,
>
>I have setup a grid to behave like a listbox with
>
>THISFORM.eView.Page1.grdEvents.AllowCellSelection = .F.
>
>which works well. However, the user can still click the header bar which has no effect other than to change the mouse pointer to a down arrow.
>
>Is there anyway of disabling the click event on a header when a grid is setup this way?
>
>Regards...Rex

See in wich event of the header you can put this code (Click, MouseEnter ...)
(I am too sleepy to try it now :o)
IF NOT this.Parent.Parent.AllowCellSelection
   NODEFAULT
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform