Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Clicking on Column Header function
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00946470
Message ID:
00984028
Views:
14
Dmitry,

I have been able to use the click event of the grid headder to set the order.
IF ORDER() != "LFNAME"
	SET ORDER TO 2   && LFNAME
ELSE
	SET ORDER TO
ENDIF
thisform.grid1.Refresh
Then in the Grid Refresh event, I reset the caption to bold or not
* reset the captions
this.Column2.Header1.FontBold = .f.
DO case
CASE ORDER() = "LFNAME"
	this.Column2.Header1.FontBold = .t.
ENDCASE
DODEFAULT()
HTH
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform