<ASP:DATAGRID id="dguser" runat="server" Width="746px" PageSize="6" AllowCustomPaging="True" AllowPaging="True"Font-Names="宋体" DataKeyField="lruserid" AutoGenerateColumns="False" EnableViewState="False" Font-Size="10pt" Font-Name="宋体" CellSpacing="1" CellPadding="2" GridLines="None" HorizontalAlign="Left" Height="136px">
<EditItemStyle BackColor="White"></EditItemStyle>
<ItemStyle BackColor="Aquamarine"></ItemStyle>
<Columns>
<asp:BoundColumn DataField="lrqq" HeaderText="QQ号"></asp:BoundColumn>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="更新" CancelText="取消" EditText="编辑"></asp:EditCommandColumn>
<asp:ButtonColumn Text="删除" CommandName="Delete"></asp:ButtonColumn </Columns>
<PagerStyle HorizontalAlign="Center" ForeColor="DarkSlateBlue" BackColor="PaleGoldenrod"></PagerStyle>
</ASP:DATAGRID>我要怎么取到第一个字段的值啊?
要怎么写"编辑"和"删除"的事件啊!?
解决方案 »
- 标题要长----------------------------------------获取List<T>的实体类T中的字段
- 请教既懂php又懂asp.net的大侠一个问题
- 请问lightbox这种上下居中是怎么弄的?
- CustomerEntity innerModel = model as CustomerEntity;//是什么意思?
- treeview的问题
- asp连接asp.net数据库用户验证求救
- 怎么让TreeView中的Node为选中状态(非展开状态)
- 求思路或方法:不刷新页面,在模态窗口中如何给新打开的窗口传值
- 大家都来测试一下我的自定义控制树!!!!!给点意见
- 分类显示
- asp.net读取word文档,并显示在网页上,怎么是乱码啊 ?
- 在ImageField中通过一个表中的ID字段,查找站点指定目录下的图片文件,若没有,则用另一个目录中的默认文件——Noimage.gif
如果想编辑或者删除某一行,应该设定gridview的datakeys,然后通过参数e进行选择。