Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to manually sort the columns data in the grid
Message
 
 
To
24/05/2004 11:12:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00906538
Message ID:
00906719
Views:
11
Hi Raj,

If you want to be able to click on the column in the grid and then sort by this field, you need to check sorting grid sample by Vlad Grynchyshyn in Downloads section here. I've incorporated his sorting routine code into my much simplier than his header class.

>How to manually sort the columns data in the grid after the select query is executed.
>
>when the data is appearing in the grid the first coulumn is filename, then proj_no and then ID
>
>Is it possible for me to show first the proj_no, then filename and then ID in the grid.
>
>
>***********************
>LcSQL = [select distinct(a.filename), b.proj_no, b.id from ocrdata a, docudeck b ;
>	WHERE UPPER(b.file_name) = UPPER(a.tiffile) ;
>	and a.OCDATA like "%] + alltrim(thisform.text1.value) + [%" ;
>	order by a.id into Cursor lcSource]
>
>
>&LcSQL
>
>with thisformset.frmocr.grid1
>	.RecordSource = ""
>	.RecordSourceType = 1 &&1 - Alias &&4 - SQL
>	.RecordSource = "lcSource"
>endwith
>
>***************
>
>Thank you very much in advance.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform