本文介绍了如何从rowUpdating事件中的grideview单元格获取值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 现在,有两个Coloumns As < asp:BoundField DataField = PageName HeaderText = 名称 HeaderStyle-Horizo​​ntalAlign = 左 > < / asp:BoundField > < asp:BoundField DataField = 路径 HeaderText = 路径 HeaderStyle-Horizo​​ntalAlign = Left > 那么如何通过函数ExtractValuesFromCell获取单元格的值GridView_RowUpdating事件? GridViewMenu.Columns [ 3 ]。ExtractValuesFromCell(e.NewValues,row.Cells [ 3 ] as DataControlFieldCell,DataControlRowState.Edit, false ); GridViewMenu.Columns [ 4 ]。ExtractValuesFromCell(e.NewValues,row.Cells [ 4 ] as DataControlFieldCell,DataControlRowState.Edit, false ); < ; / pre > ExtractValuesFromCell如何存储thoese值?解决方案 请参阅以下链接以更好地了解实现RowUpdating事件 GridView RowUpdating 如何添加插入更新删除行ASP。 NET GridView控件 如何在网格视图中编辑和更新行值 Now,there are two Coloumns As<asp:BoundField DataField="PageName" HeaderText="名称" HeaderStyle-HorizontalAlign="Left"> </asp:BoundField><asp:BoundField DataField="Path" HeaderText="路径" HeaderStyle-HorizontalAlign="Left">So how can I get cell''s value by function ExtractValuesFromCell on GridView_RowUpdating Event ?GridViewMenu.Columns[3].ExtractValuesFromCell(e.NewValues, row.Cells[3] as DataControlFieldCell, DataControlRowState.Edit, false); GridViewMenu.Columns[4].ExtractValuesFromCell(e.NewValues, row.Cells[4] as DataControlFieldCell, DataControlRowState.Edit, false);</pre>ExtractValuesFromCell how to store thoese values? 解决方案 Refer to below links to get better idea on implementing the RowUpdating eventGridView RowUpdatingHow to Add Insert Update Delete rows ASP.NET GridView ControlHow to edit and update row values in grid view 这篇关于如何从rowUpdating事件中的grideview单元格获取值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-25 01:16