|
 This step of the VIDEO TUTORIAL will show case on how to add an editable GridView control to the UserLevelAccess.aspx web page. This is needed to edit the product information belonging to a particular supplier name selected in the Suppliers dropdown list on the web page. Since, only ProductName and UnitPrice fields are made editable in the GridView control, an over load of the Update method is created in the ProducsBLL business logic layer. In addition, a new business rule also enforced in this newly added Update overload method. The business rule allows the editing of product information only when it is NOT discontinued by the corresponding supplier. If a product is discontinued by the supplier, that product information will display in a read only mode in the GridView control. This step of the tutorial will conclude by demonstrating the display of product information in the GridView control for a particular supplier. For detailed information and source code for this step, please refer to the original article.
View Video...
|
|
 This step of the VIDEO TUTORIAL will focus on how to implement the business rule that was created earlier. The business rule dictates that if a particular product is discontinued by a supplier, its product information MUST not be editable in the GridView control. In order to accomplish this implementation of the business rule, a custom logic is written in the GridView controls ProductsBySupplier_RowDataBound event handler. Basically, every DataRow is evaluated to see whether the ‘Discontinued’ field is set to true, if the ‘Discontinued’ field is true, the Edit link of the GridView control for that particular row display is hidden. For detailed information and source code for this step, please refer to the original article.
View Video...
|
|
|