Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to manually sort the columns data in the grid
Message
De
24/05/2004 12:02:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/05/2004 11:12:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00906538
Message ID:
00906561
Vues:
12
Yes, you can control individual columns in your grid.

First, set the Grid.ColumnCount to the number of columns you need. In your example, 3.

Now, you can change the ControlSource of each individual column separately. You can also control other Column properties, for example, the width of each column, an InputMask, etc.

>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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform