
Limiting Data Modification Functionality Based on the User:
Step 5-Disallow Editing for Discontinued Products When “Show/Edit ALL Supplier's is Not Selected
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.
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