dantheinfoman
Programmer
Hi All,
I don't need to sort dynamically. I'm trying to make baby steps in a different direction. I have a grid that imports xls files and I want it to (no matter how many columns there happen to be) allow me to click on a header and for it to say wait window 'You clicked on column 1' or 'You clicked on column 5'.
I've read about Bindevent, but i don't get it nor understand the syntax.
Here's the crappy code I've got that isn't working.
I figure whatever code I put in, it will have to be in the form's init or more likely in the grid1's init event. I also think that Bindevents is like using dynamicforecolor and all the other 'dynamic' things in that it takes a command from the INIT and rolls with it.
Thanks!
Dan
I don't need to sort dynamically. I'm trying to make baby steps in a different direction. I have a grid that imports xls files and I want it to (no matter how many columns there happen to be) allow me to click on a header and for it to say wait window 'You clicked on column 1' or 'You clicked on column 5'.
I've read about Bindevent, but i don't get it nor understand the syntax.
Here's the crappy code I've got that isn't working.
Code:
oHandler=NEWOBJECT("myhandler")
BINDEVENT(thisform.pf.p1.grid1.Columns,"Click",oHandler,"myHClickp")
DO "C:\hello\importer\importer\myhclickp.prg"
I figure whatever code I put in, it will have to be in the form's init or more likely in the grid1's init event. I also think that Bindevents is like using dynamicforecolor and all the other 'dynamic' things in that it takes a command from the INIT and rolls with it.
Thanks!
Dan