日期:2014-05-19  浏览次数:20410 次

!!!!!!!!! DataGrid 中加TextBox 问题 -----
请问怎样获得DataGrid   中TextBox得值,,
((TextBox)e.Item.Cells[7].Controls[1]).Text   这样写为什么不行呢。。??

------解决方案--------------------
dim str1 as string= CType(e.Item.FindControl( "Label2 "), Label).Text
------解决方案--------------------
这样比较容易找到
((TextBox)e.Item.Cells[7].FindControl( "TextBox1 ")).Text
------解决方案--------------------
按amandag(高歌) 的方法应该能得到的,你看看Cells的索引没错吧,记得索引是从0开始的
------解决方案--------------------
amandag(高歌)
是正确的!!!!!!
你是一下