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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DATAGRID COLUMN HEADINGS (ASP.NET)

Status
Not open for further replies.

ARCITS

Programmer
Apr 4, 2002
99
GB
Is it possible to amend the column headings in a bound datagrid. At present all I get displayed are the column names or aliases, but I would like to customise these.

Many Thanks


Andy
 
The HeaderText can be set to customized....

<asp:BoundColumn DataField=&quot;PIC&quot; SortExpression=&quot;PIC&quot; HeaderText=&quot;Client Partner&quot;>

dlc
 
If you are using vs.net as your IDE, you can change it using the Property Builder. Here you can change the names of the fields/columns in you data grid.
 
Please excuse my nieveness on this chaps.

firstly I managed to get the Property builder up but what do I change?

Also in the example from checkai where do I put this code?

Many Thanks
 
That code is in the HTML view....In the property builder, you bust Bind the columns and then when you have a column highlighted...there is a Header Text box available to update.

DLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top