且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用C#更新GridView中的特定行

更新时间:2022-12-23 18:50:55




你能否请参考这个

链接






能否请参考

链接



我知道如何用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