VFPX / VFPGridManyHeader

Custom container class for replacing and extending the VFP header class
1 stars 3 forks source link

Order grid on clic in header #1

Open IcuScc opened 6 years ago

IcuScc commented 6 years ago

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

thansk.

pruha-prul commented 6 years ago

Hi, yes of course It’s possible. Question only are you need an independent class or …something particular

From: Sergio [mailto:notifications@github.com] Sent: Monday, May 14, 2018 8:32 PM To: VFPX/VFPGridManyHeader VFPGridManyHeader@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [VFPX/VFPGridManyHeader] Order grid on clic in header (#1)

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

thansk.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/VFPX/VFPGridManyHeader/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aky0SY_7vOw8gzw8IAdbUC8rk2m_LqVZks5tyb-UgaJpZM4T-NSP.

pruha-prul commented 6 years ago

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 commented 6 years ago

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

Thanks...