我有两个网格视图控件,一个是临时的,另一个是简单的网格视图控件.如何解决 [英] i have two grid view controls one is temporary and anoter is simple grid view control.how to solve it
本文介绍了我有两个网格视图控件,一个是临时的,另一个是简单的网格视图控件.如何解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个网格视图控件,一个是临时的,另一个是简单的网格视图控件.在简单的网格视图控件中,它在命令名称中包括了编辑按钮,我想编辑该网格并在临时视图中显示值grid.怎么可能?请尽快帮助我. thnx
i have two grid view controls one is temporary and anoter is simple grid view control.in the simple grid view control it includes the edit button on its command name edit i want to edit this grid and also to show values in the temprary grid.how it can be possible?please help me as soon as posssible. thnx
推荐答案
if(e.commandname="Edit")
{
//Fetch Row by primary key in datatable
//assign datatables values in temp grid's labels directly
}
在Gridview中进行编辑时
从Gridview单元格中获取值,并将这些值保存在临时Datatable中.
然后根据需要在更新Gridview之前或之后将该Datatable绑定到临时Gridview.
At the Time of editing in Gridview
fetch the values from the Gridview cells and save those values in a temporary Datatable.
and then bind that Datatable to your temporary Gridview before or after updating your Gridview as your requirement.
这篇关于我有两个网格视图控件,一个是临时的,另一个是简单的网格视图控件.如何解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文