Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBGrid
Message
From
30/11/1998 06:23:22
Jody Cairns
OAO Technology Solutions
Moncton, New Brunswick, Canada
 
 
To
30/11/1998 02:52:06
General information
Forum:
Visual Basic
Category:
Other
Title:
Re: DBGrid
Miscellaneous
Thread ID:
00162334
Message ID:
00162350
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform