Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resize of grid column fires the grid.header.click()
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00445699
Message ID:
00445705
Views:
15
>When resizing a column in a cGridList grid with sortable columns, the act of resizing the column with the mouse fires the grid column header's click() method which results in the column being resorted. Does anyone know how to allow resizing the column without firing the header.click()?

You can use a flag. Create a property called something like No_Sort_Please, and put this line of code in a column's Moved() and Resize() events,

This.parent.No_Sort_Please = .T.

Then in the Header Click, put code like this at the beginning:

IF This.Parent.Parent.No_Sort_Please
This.Parent.Parent.No_Sort_Please = .F.
RETURN
ENDIF
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform