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

ASP.NET Hyperlink or Label 1

Status
Not open for further replies.

galvin101

Programmer
Aug 17, 2005
6
GB
Hi I am fairly new to ASP.NET , so apologies if this has already been covered.

I have created a query on an orders table and successfully returned the data.

There is a column called STATUS if the status is OPEN then I would like a hyperlink to be displayed in the gridview and if the status is TRANSMITTED I would like a label to be displayed in the gridview.

Does anyone know if this type of thing is possible by means of a function on a template field?

cheers
 
Yes - you can use the RowDataBound event and get a reference to the relevant control using FindControl.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top