我只能在gridview中插入一个按钮吗? [英] Can i insert only one button in gridview?
本文介绍了我只能在gridview中插入一个按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只能在gridview中插入一个按钮吗?请给我发送示例代码.或者请给我该任务的链接..
Can i insert only one button in gridview?please send me sample code.. or please give me link of that task..
推荐答案
引用:
<asp:gridview id="GridView1" datasourceid="MyDataSource" xmlns:asp="#unknown">
DataKeyNames="AccountCode,AccountName" ShowFooter="true" AutoGenerateColumns="false"
AutoGenerateEditButton="true" AutoGenerateDeleteButton="true"
OnRowCommand="GridView1_RowCommand"
runat="server">
<columns>
<asp:boundfield datafield="AccountDescription" headertext="Description" />
<asp:buttonfield buttontype="button" text="Details" commandname="Details" />
</columns>
</asp:gridview>
参考:将按钮字段添加到GridView控件 [
Ref.:Adding button fields to a GridView control[^]
这篇关于我只能在gridview中插入一个按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文