Home  About Us   Contact  Search   Tell A Friend   Resources  dotnetVideos Store Register  Login    
  August 21, 2008  
telerik_wpf
AddingRespndngtoBtnsinGridView    

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

Adding and Responding to Buttons to a GridView: Step 1: Adding the Button Tutorial Web Pages

This step of the VIDEO TUTORIAL will demonstrate on how to add command buttons to data web controls such as FormView and GridView controls to web page CustomButtons.aspx in the newly created CustomButtons folder of Data Tutorial project. The command button in the FormView control will invoke a custom method that will discontinue products from a particular supplier. And the command buttons that are added to individual rows in the GridView control which displays the products belonging to a particular supplier would invoke a custom code that either increase or decrease a particular product’s UnitPrice by 10%. In order to accomplish this functionality in the upcoming steps of this tutorial a new folder titled CustomButtons is added to our project. Two new pages Default.aspx and CustomButtons.aspx are also added to this newly created folder. Finally, the web.sitemap file is updated t include this newly created folder and its new pages on site.master page’s left side navigation menu.For detailed information and source code for this step, please refer to the original article.

  View Video...

Adding and Responding to Buttons to a GridView: Step 2: Adding a FormView that Lists the Suppliers

This step of the VIDEO TUTORIAL (included in Step 1) will layout the foundation to demonstrate the addition of command buttons to data web controls by adding a FormView control to the CustomButtons.aspx page. Only supplier’s company name and phone number is displayed in the FormView control. This is accomplished by adding a Suppliers ObjectDataSource to the CustomButtons.aspx web page and mapping the ‘GetSuppliers( )’ method to the select tab of the object data source configuration wizard and finally binding the ObjectDataSource to the FormView control on the web page. The runtime display of the newly created FormView control is also shown. For detailed information and source code for this step, please refer to the original article.

  View Video...

Adding and Responding to Buttons to a GridView: Step 3: Adding a GridView that Lists the Selected Supplier’s Products

This step of the VIDEO TUTORIAL will demonstrate the addition of a GridView control under the FormView control created in the previous step on the CustomButtons.aspx web page. The GridView display products belong to a particular supplier that is being displayed in the FormView control on the same page. The GridView control is configured to use an ObjectDataSource control that retrieve product information belong to a particular supplier by invoking ‘GetProductsBySupplierId ( )’ method of the ProductsBLL business object. The ‘SupplierID’ parameter is supplied to this ObjectDataSource by the FormView control’s selected value. Finally, a run time display of both the FormView as well as GridView control is demonstrated. For detailed information and source code for this step, please refer to the original article.

  View Video...

RedGateTwr0508
  Copyright 2008 by dotnetvideos.net   Terms Of Use | Privacy Statement