AspDotNetAtoms.com provides daily updates on ASP.NET Tutorials, Programming Resources, .NET Articles, Authors and more.

Categories

Recent Posts

Using TemplateFields in the DetailsView Control : Scott Mitchell

Thursday, August 21 2008

The TemplateField offers a higher degree of flexibility in rendering data than the BoundField, CheckBoxField, HyperLinkField, and other data field controls. In the previous tutorial we looked at using the TemplateField in a GridView to: Display multiple data field values in one column. Specifically, both the FirstName and LastName fields were combined into one GridView column. Use an alternate Web control to express a data field value. We saw how to show the HiredDate value using a Calendar control. Show status information based on the underlying data. While the Employees table does not contain a column that returns the number of days an employee has been on the job, we were able to display such information in the GridView example in the previous tutorial with the use of a TemplateField and formatting method....

Read More:
Using TemplateFields in the DetailsView Control : Scott Mitchell
Also See:
Master/Detail Part 2: Filtering With Two DropDownLists : Scott Mitchell
Using Parameterized Queries with the SqlDataSource : Scott Mitchell
ObjectDataSource in Depth (Part 2) : Manuel Abadia
Nested GridView Grouping and Displaying SubTotals and GrandTotals : Mohammad Azam
Changing GridView Column Color : AzamSharp

Post your comment

Comment