Page 2 of 2First   Previous   1  [2]  Next   Last   

Using TemplateFields in the GridView Control: Step 4-Showing the Number of Days the Employee Has Worked for the Company

This VIDEO TUTORIAL will focus on demonstrating how to display the ‘Days on the Job’ column of the GridView control at run time. This is accomplished by adding a new TemplateField to the GridView control at design time. In order to calculate the number of days an employee has been with the company, a custom method ‘DisplayDaysOnJob’ is written in the code behind of the GridViewTemplateField.aspx web page. This method is called in the newly created TemplateField in the declarative mark of the web page to display the ‘Days on the Job’ column in the GridView control at run time. For detailed information and source code for this step, please refer to the original article.

 
  View Video...


Copyright 2007-2012 by dotnetvideos.net   |  Privacy Statement  |  Terms of Use