如何在GridView控件中插入下拉控件 [英] how to insert dropdown control in gridview control
本文介绍了如何在GridView控件中插入下拉控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好
我不知道在gridview控件中插入下拉列表的想法,您能帮我麻烦吗
hello
i dont have idea about inserting dropdown list in gridview control can you help me plsease
推荐答案
1.使用ItemTemplate创建一个模板字段,然后插入下拉列表控件.
2.在RowDataBound事件中找到该行的DropDown控件实例并填充它.
看看:
http://computermutt.wordpress.com /2009/12/25/creating-a-dropdown-in-an-asp-net-gridview-control/ [创建DropDownList类型的ASP.NET GridView自定义字段 [ ^ ]
希望对您有所帮助!
1.Create a template field with an ItemTemplate and insert the Dropdown control.
2.In the RowDataBound Event find the DropDown control instance for the row and populate it.
have a look at :
http://computermutt.wordpress.com/2009/12/25/creating-a-dropdown-in-an-asp-net-gridview-control/[^]
Creating an ASP.NET GridView Custom Field of type DropDownList[^]
hope this helps !
嗨..
请参考
^ ]
ASP.NET DROPDOWNLIST& GRIDVIEW [^ ]
Hi ..
Please refer
http://www.dotnetfunda.com/forums/thread536-how-to-add-a-dropdownlist-to-gridview-and-how-to-add-a-datasource-to-d.aspx[^]
ASP.NET DROPDOWNLIST & GRIDVIEW[^]
此示例将演示如何将DropdownList ASP.Net控件插入到GridView控件中:
在GridView中插入DropdownList控件 [访问GridView内部的DropDownList [ 带有GridView的Ajax级联DropDownList [将DropDownList添加到可编辑的数据网格 [如何向gridview添加下拉列表,以及如何向下拉列表添加数据源. [
This sample will demonstrate how you can insert a DropdownList ASP.Net control into a GridView control:
Insert DropdownList control in GridView[^]
A CP Aticle By Ravindra Nidhonkar
Accessing a DropDownList inside a GridView[^]
Another one CP Article with AJAX, This is an alternative for "Ajax Cascading DropDownList With GridView"
Ajax Cascading DropDownList With GridView[^]
This article by Matthew Rouse examines how to add a DropDownList control to an editable DataGrid:
Adding a DropDownList to an Editable DataGrid[^]
Check this answer too:
how to add a dropdownlist to gridview and how to add a datasource to dropdown.[^]
这篇关于如何在GridView控件中插入下拉控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文