如何使用C#更新GridView中的特定行 [英] How To Update Particular Row In GridView Using C#

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

问题描述

亲爱的先生。



请给我任何一个Ans如何使用C#更新GridView中的特定行#


问候

atul singh

Dear Sir.


Pls Give Me any One Ans how to update particular Row in GridView using C#


Regards
atul singh

推荐答案




你能否请参考这个

链接






能否请参考

< a rel =nofollowhref =http://authors.aspalliance.com/aspxtreme/webforms/controls/allowinguserstoeditrowsingridview.aspx\"target =_ blank>链接



我知道如何用HTML更新,但我想在C#中如何更新


protected void PriceEp_RowUpdating(object sender,GridViewUpdateEventArgs e)

{


}

如何使用Csharp.Pls帮助更新任何一个Gi我是正确的解决方案。



问候

atul singh


I know how to update with HTML, But I want in C# How To Update

protected void PriceEp_RowUpdating(object sender, GridViewUpdateEventArgs e)
{

}
How to Update with The Help Of Csharp.Pls Any one Give Me Proper Solutions.


Regards
atul singh



尊敬的先生。



请给我任何一个Ans如何使用C#更新GridView中的特定行#

>
问候

atul singh
Dear Sir.


Pls Give Me any One Ans how to update particular Row in GridView using C#


Regards
atul singh


gridview属性中的
转到事件那里有RowUpdating事件的双重点击,它将自动重定向到代码后面...在RowUpdating事件中你可以编写更新代码


ex:

受保护的子GridView1_RowUpdating(ByVal发送者作为对象,ByVal e As System.Web .UI.WebControls.GridViewUpdateEventArgs)处理GridView1.RowUpdating


int i;

i = e.RowIndex;


所以我包含rowindex现在你可以根据你的存储过程更新适当的行


in gridview property go to Events there doublic click of RowUpdating Event which will automaticall redirect into code behind...Inside the RowUpdating event u can code for updation

ex:
Protected Sub GridView1_RowUpdating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GridView1.RowUpdating

int i ;
i = e.RowIndex;

so i contain rowindex now u can update appropriate row according to u r Stored Procedure


这篇关于如何使用C#更新GridView中的特定行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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