在GRIDVIEW中更新行 [英] UPDATING ROW IN GRIDVIEW

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

问题描述

我需要帮助

这是我的功能

但没有任何改变

解决方案

嗨艾哈迈德,

您是否设置了GridView1_RowEditing事件?如果没有,请进行设置

受保护的void GridView1_RowEditing(对象发送者,GridViewEditEventArgs e)
  {
    //设置编辑索引.
    GridView1.EditIndex = e.NewEditIndex;
    //将数据绑定到GridView控件.
    PopulateGridView();
  } 



i need help 

and this is my function

but nothing changed

解决方案

Hi Ahmed,

Have you set the GridView1_RowEditing event ?? if no , please set it 

protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
  {
    //Set the edit index.
    GridView1.EditIndex = e.NewEditIndex;
    //Bind data to the GridView control.
    PopulateGridView();
  }



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

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