GridView“编辑" [英] GridView "Edit"

查看:93
本文介绍了GridView“编辑"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用gridview编辑带有命令字段的列.我可以在两个文本框中编辑两个数据列.但是同时,这些列也在网格视图中进行了编辑.这是我的代码.

Hi All,

I am using the gridview to edit the columns with command field. I am able to edit the two data columns in two text boxes. But at the same time, those columns are being edited on the grid view also. Here is my code..

string test = GridView1.Rows[e.NewEditIndex].Cells[0].Text;
string test1 = GridView1.Rows[e.NewEditIndex].Cells[1].Text;

TextBox1.Text = test;
TextBox2.Text = test1;


对于文本框,它的工作正常.我希望仅在文本框中而不是在网格视图中编辑列.谁能帮我.

问候,

Raj


Its working fine for the text boxes. I want the columns to be edited only in text boxes, not in grid view. Can anyone help me please.

Regards,

Raj

推荐答案

^ ]


这篇关于GridView“编辑"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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