Personal Web & Sample Site
Skip Navigation Links
HOME |
About Me |
Articles
| Contact Us
Custom Formatting - Custom FormView Example
Rating: 8 user(s) have rated this article Average rating: 4.6
Posted by: joet, on 8/10/2011, in category "MS SQL"
Views: this article has been read 4230 times
Location: Houston, Tx, United States
Abstract: In the last two tutorials we saw how to customize the GridView and DetailsView controls' outputs using TemplateFields. TemplateFields allow for the contents for a specific field to be highly customized, but in the end both the GridView and DetailsView have a rather boxy, grid-like appearance. For many scenarios such a grid-like layout is ideal, but at times a more fluid, less rigid display is needed. When displaying a single record, such a fluid layout is possible using the FormView control. The FormView was binded to a ObjectDataSource using the GetProducts method and the resulting markup was deleted and replaced with a table and CSS classes.

In the last two tutorials we saw how to customize the GridView and DetailsView controls' outputs using TemplateFields. TemplateFields allow for the contents for a specific field to be highly customized, but in the end both the GridView and DetailsView have a rather boxy, grid-like appearance. For many scenarios such a grid-like layout is ideal, but at times a more fluid, less rigid display is needed. When displaying a single record, such a fluid layout is possible using the FormView control. The FormView was binded to a ObjectDataSource using the GetProducts method and the resulting markup was deleted and replaced with a table and CSS classes.

 

Go here for example!

 


How would you rate this article?

User Feedback

Post your comment
Name:
E-mail:
Comment:
Insert Cancel

Copyright © 2013 Jose M. Tamez
Last Updated August 18th 2013