Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order grid on clic in header #1

Open
IcuScc opened this issue May 14, 2018 · 3 comments
Open

Order grid on clic in header #1

IcuScc opened this issue May 14, 2018 · 3 comments

Comments

@IcuScc
Copy link

IcuScc commented May 14, 2018

Hi.
It is possible to order grid when i clic on header columns?

thansk.

@pruha-prul
Copy link

pruha-prul commented May 14, 2018 via email

@pruha-prul
Copy link

for example, below there is my particular code for header click event. if you need universal solution you need something like:
c=this.parent.controlsource
INDEX on $c TO &ch
but you need verify that &c is correct expression for indexing or use try/catch

my code on one header:
SELECT shift_jobs_full
SET SAFETY OFF
ch=cTemp+"iii"+ALLTRIM(STR(SECONDS()))
INDEX on LEFT(empl_Name,15)+DTOC(dstart) TO &ch
SET SAFETY ON
GO TOP IN shift_jobs_full
thisform.Refresh

@IcuScc
Copy link
Author

IcuScc commented May 17, 2018

Thanks a Lot Pruha.
I make your methond and works very well.

Thanks...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants