>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only