如何在单击时删除GridView行 [英] How to Remove GridView row on click
本文介绍了如何在单击时删除GridView行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在点击时删除GridView行?
How to Remove GridView row on click?
推荐答案
你好,
有很多谷歌提供的解决方案。
试试这些
Simple-Insert-Select-Edit-Update-and-Delete-in-ASPNet-GridView - 控制
另一个
如何在gridview 中插入更新和删除数据
谢谢
Hello ,
There are lots of solutions available in google .
try these
Simple-Insert-Select-Edit-Update-and-Delete-in-ASPNet-GridView-control
another one
how-to-inserteditupdate-and-delete-data-in gridview
thanks
如果您使用的是GridView,在客户端,它将仅呈现为HTML表格。
所以使用jquery你可以删除客户端的表行..
请通过以下链接查看如何删除客户端方..
http:// stackoverflow.com/questions/170997/what-is-the-best-way-to-remove-a-table-row-with-jquery [ ^ ]
http://stackoverflow.com / questions / 370013 / jquery-delete-all-table-rows-except-first [ ^ ]
http://stackoverflow.com/questions/16200104/jquery-add-and-remove-table-rows [ ^ ]
试试这个示例代码...
If you are using GridView, On the Client Side it will render as HTML table only..
so using jquery u can remove the table row in client side..
please go through the following links to see how to remove in client side..
http://stackoverflow.com/questions/170997/what-is-the-best-way-to-remove-a-table-row-with-jquery[^]
http://stackoverflow.com/questions/370013/jquery-delete-all-table-rows-except-first[^]
http://stackoverflow.com/questions/16200104/jquery-add-and-remove-table-rows[^]
try this sample code...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="POC.WebForm2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<script src="jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
( function (){
这篇关于如何在单击时删除GridView行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文