DataGrid 中ItemEdit事件中,为何得不到编辑时的textbox
我在OnEditCommand事件中想得到编辑时的textbox可是总是出错,我用的语句是:
CType(e.Item.Cells(0).Controls(0), TextBox).Width = Unit.Pixel(100)
错误:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index
请教高手指点,多谢了!!
问题点数:0、回复次数:1Top
1 楼zyhjolly(zyhjolly)回复于 2003-06-06 14:49:13 得分 0
第1列是否可以编辑?Top
相关问题
- 送分!在 datagrid 的摸板列中,为什么得不到 textbox 框更改后的值?
- 下面代码得不到数据? datagrid
- DataGrid 得不到要update的数据
- 我在DataGrid控件中增加了列编辑,原来可以能过((TextBox)e.Item.Cells[4].Controls[0]).Text;得到值,现在得不到了,不知为何.
- 把DataGrid 导入excel中去,excel得不到值? 求教!!!
- 那里错了?在Repeater中可以循环得到隐藏Label值,但得不到TextBox的输入值,郁闷!!
- 在DataGrid中绑定一个imagebutton,为什么在datagrid的OnItemCommand中得不到imagebutton的commandname
- 上传文件的页面upfile.htm的form中添加了一个textbox,提交后在upfile.asp处理过程中得不到textbox中的值,为什么呀?
- 我用DataGrid的OnUpdateCommand事件来更新数据,为何得不到新输入的值
- 得不到窗口句柄!




