如何在GridView中删除行 [英] How to Delete a Row in gridview

查看:101
本文介绍了如何在GridView中删除行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我想知道如何在gridview中删除一行.我将在每一行上都有一个链接按钮
当用户单击链接按钮时,应删除该行.
注意:
我正在使用

Hi frds,

I want to know how to delete a row in gridview. i will have a link button on each row
when user click on the link button the row should be removed.
Note:
i was using a

[Serializable]

列表,该列表已从视图状态添加到视图状态,但已将其绑定到gridview.(我未使用数据库或数据表)如何删除gridview中的数据

谢谢
parithi

list which was added to a view state from the view state i was binding it to a gridview.(i am not using database or datatable)how can i remove the data in gridview

thanks
parithi

推荐答案

请参考以下线程:
删除GridView的基础数据 [全功能可编辑GridView控件 [ ^ ]

相同的视频:
如何使用GridView从数据库中删除行 [在gridview上删除按钮 [
Please refer following threads:
Deleting a GridView''s Underlying Data[^]

This link give you complete information of Full-featured Editable GridView Control[^]

Videos on same:
How to delete a row from a database using the GridView[^]
Delete button on gridview[^]


您可以看到此文章
You can see this article
GridView Delete, with Confirmation[^]



我为您的要求做了一些代码检查一次

Hi
I did some code for your requirement check it once

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script language ="javascript" >
        function postrowtodel(id) {


这篇关于如何在GridView中删除行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆