网格视图onrowupdating [英] grid view onrowupdating
本文介绍了网格视图onrowupdating的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
受保护的 void 更新( 2 ].Text
}
但是它显示了一个空的文本框??
请帮助..
解决方案
建议您从e.NewValues
或e.OldValues
(根据需要)属性中检索值.这些是字典集合,将为您提供该行的单元格值.
进一步建议您使用IDE提供的调试功能.
^ ]
protected void updating(object sender, GridViewUpdateEventArgs e)
{
TextBox1.Text = gvShowProducts.Rows[e.RowIndex].Cells[2].Text
}
But its showing an empty text box???
please help..
解决方案
Suggest you retrieve the value frome.NewValues
ore.OldValues
(based on your requirement) properties. These are dictionary collections which will give you the cell values for that row.
Further suggest you to use the debugging feature provided by your IDE.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowupdating.aspx[^]
这篇关于网格视图onrowupdating的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文