在gridview RowUpdating事件中检索边界字段的值 [英] retrive value of boundfield in gridview RowUpdating event

查看:60
本文介绍了在gridview RowUpdating事件中检索边界字段的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用以下代码在gridview RowUpdating事件中获取边界域的值

I want to get value of boundfield in gridview RowUpdating event using the following code

string str1= Gd.Rows[e.RowIndex].Cells[5].Text;


但是此代码始终返回空值.


but this code always returns null value.

推荐答案

我猜你必须从文本框中键入值
i guess u have to typecast the value from textbox
string dtr = ((TextBox)gvrw.Cells[5].Controls[0]).Text;


格式不正确....请尝试此

GridView.RowDataBound事件 [
Incorrect format....Try this

GridView.RowDataBound Event[^]


这篇关于在gridview RowUpdating事件中检索边界字段的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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