Formatting the DataList and Repeater Based Upon Data: Step 2-Programmatically Determining the Value of the Data in the ItemDataBound Event Handler

Formatting the DataList and Repeater Based Upon Data:
Step 2-Programmatically Determining the Value of the Data in the ItemDataBound Event Handler
This VIDEO TUTORIAL will demonstrate on how to format data using an event handler of the DataList. For example, in this tutorial, our objective is to format the Product information displayed in the DataList, especially ProductName and UnitPrice are highlighted in yellow color for UnitPrice values less than $20.00. In order to accomplish this, an event handler for the DataList’s ItemDataBound is created and some custom code is written in this event handler to verify the values of UnitPrice column that satisfy our business rule from the ProductsRow instance. Once the UnitPrice column is found that satisfies the business rule of being not null and values less than $20.00, additional style classes will be applied to it and are explained in detail in the upcoming video. For detailed information and source code for this step, please refer to the original article.



 

This video presentation is available ONLY for REGISTERED users of this web site due to significant costs associated with data transfer of multimedia content.  Please register to view this video. Registration is FREE of charge and takes less than a minute to complete. Thanks for your consideration.

---Administrator


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