Duration: 16 minutes
Summary: We will show how to work with bound fields and how to change their properties. When the AutoGenerateColumns property of the grid is set to false, the columns tag will list all the fields used by the grid. You can modify these fields’ properties to match your requirements (for example, changing the header text to be different from the column names from the associated database). We will also show how to display text to the user informing him/her when there are no records returned from the database. Then, we will see how to add templated fields (example joining first name and last name in one field), and how to add commad fields (edit, delete…) to the first column of the grid and how to control their properties.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, GridView, BoundField, CommandField, ButtonType, ShowDeleteButton, ShowEditButton, EmptyDataText, TemplateField, ItemTemplate, Eval, AutoGenerateColumns.