>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.