Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid column header

Status
Not open for further replies.

heydyrtt

Programmer
Dec 12, 2001
63
US
Need to know how to get columnheaders from a db field, other than what my recordset is. I have a one table where the location_mask column is located, the data in this column is for locations and it like BLDG POD CELL FLR this is all in one column. And the grid data I'm retreiving is in a different table. How is possible to get the grid headers from this column?


Thanks


Heydyrtt
 
Data is in a different table ... ? I'm not sure what that means. A table that is not being retrieved?

There are two ways that you can set a coulmn header

The SQL
Code:
Select [BLDG POD CELL FLR] As [Location], ...

The Columns Collection

Code:
DataGrid1.Columns(1).Caption = "Location"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top