Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBGrid
Message
De
30/11/1998 06:23:22
Jody Cairns
OAO Technology Solutions
Moncton, Nouveau-Brunswick, Canada
 
 
À
30/11/1998 02:52:06
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Re: DBGrid
Divers
Thread ID:
00162334
Message ID:
00162350
Vues:
28
>Anybody know how to change header title in DBGrid ?

If you mean the caption that appears on top of the column names, then that is the Caption property of the DBGrid.

>and also I want only apart of my field to be show on DBGrid how to do this ?
>for example I have 4 fields they are : FCODE, FNAME, FSTATUS, FSALARY
>and only FCODE and FNAME want to be show on DBGrid ..( I don't want to use SQL )

I you are accessing an Access database, you could create a query within Access with just the fields you want then populate your Grid using that. Very easy to do.

Or you could set the Visible property of the columns you don't want to false. To do this at design-time, right-click on the grid and pick "Retrieve Fields". Then right-click again on the grid and pick "Properties". Then go to the Columns tab and set the uncheck the Visible property for the columns you don't want visible. This can be done programmatically at run-time, too.

Hope that helps.

Best,

jody
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform