如何在asp.net的gridview中应用编辑和删除? [英] how can i apply edit and delete in gridview in asp.net?

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

问题描述

我如何在asp.net的gridview中应用编辑和删除?
我的代码在后面的代码中

how can i apply edit and delete in gridview in asp.net?
my code is in code behind

con.Open();
            SqlDataAdapter sda = new SqlDataAdapter("select * from ASSIGNCCID", con);
            DataSet ds = new DataSet();
            sda.Fill(ds);
            GridView1.DataSource = ds;
            GridView1.DataBind();
       con.Close();

推荐答案

您是否尝试过 ^ ]?

对您的问题进行简单搜索即可得到396,000 results.该搜索中的许多线程肯定会帮助您.

在CP上问了类似的问题很多次,我已经回答了很多遍,请看上进行搜索CodeProject [ ^ ]也会从那里获得许多线程.

您应该先尝试一下,然后再提出您到目前为止所尝试过的问题.这根本不合适.
Have you tried google[^]?

A simple search with your question gives 396,000 results. Many of threads from that search will surely help you out.

Similar question ask''d on CP many times and I have answered them many times have a look here[^]

You can also try search on CodeProject[^] also many threads you will get from there also.

You should try first then post your questions with what you have tried so far. This is not at all appropriate.


尝试
http://www.dotnetfunda.com/articles/article29.aspx [ http://wiki.asp.net/page.aspx/1360/add -edit-update-delete-gridview/ [ http://www.youtube.com/watch?v=nasxOKyOl1Q [
Try
http://www.dotnetfunda.com/articles/article29.aspx[^]
http://wiki.asp.net/page.aspx/1360/add-edit-update-delete-gridview/[^]

Video - http://www.youtube.com/watch?v=nasxOKyOl1Q[^]


请参阅以下链接.会帮助您

http://csharpdotnetfreak.blogspot.com/2009/05/gridview-sqldatasource-insert-edit.html [ http: //www.dotnetfunda.com/articles/article29.aspx [ ^ ]
see below links.. it will help you

http://csharpdotnetfreak.blogspot.com/2009/05/gridview-sqldatasource-insert-edit.html[^]
http://www.dotnetfunda.com/articles/article29.aspx[^]


这篇关于如何在asp.net的gridview中应用编辑和删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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