Dropdownlist in GridView
-
Hi, I have Gridview which contains id, status, name, Edit button. The edit mode of the GridView will display the DropdownList for the Status column. So user selects the Edit button, and update the status by selecting from the DropdownList. My GridView has 100 rows. To update the Status, go to each row and select value from Dropdownlist and click on Update button. Instated of editing each row to change the value of Status, I want to to display the Checkboxes in one column in Gridview to update all at once(This is needed when we want to Update 30 rows with the one status value). Now Where we need to display the Dropdown list in the GridView to select the Status values and selecting the Check boxes. Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row. In this situation what is the Best way? Thanks in advance.
-
Hi, I have Gridview which contains id, status, name, Edit button. The edit mode of the GridView will display the DropdownList for the Status column. So user selects the Edit button, and update the status by selecting from the DropdownList. My GridView has 100 rows. To update the Status, go to each row and select value from Dropdownlist and click on Update button. Instated of editing each row to change the value of Status, I want to to display the Checkboxes in one column in Gridview to update all at once(This is needed when we want to Update 30 rows with the one status value). Now Where we need to display the Dropdown list in the GridView to select the Status values and selecting the Check boxes. Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row. In this situation what is the Best way? Thanks in advance.
Mahimam wrote:
Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row.
Yes, you can. Use TemplateColumn to do that.
Venkatesh Mookkan My: Website | Yahoo Group | Blog Spot