如何取得datagrid选择行中单元格的值? 在datagrid的DoItemCommand事件中,取出触发DoItemCommand事件的行中某个单元格的值。这个格中可能有控件(如label),也可能没有控件(直接绑定的)。请高手指点如何取值。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 e.Item.Cells[4].Text;Label lb = (Label)e.Item.FindControl("Label1");lb.Text........ 如果是绑定列,就是e.Item.Cells[4].Text;如果是存在控件的模板列,就是Label lb = (Label)e.Item.FindControl("Label1"); .Item.Cells[4].Text;(Label)e.Item.FindControl("Label1"); 又一个gppgle地图API的问题期待hookyzlr来看.. 急。。。GridView有问 怎么做这个导航条 ~~~~~JS读取xml到<select>问题~~~~救急!! petshop 4.0 的问题 session的问题 web.config配置问题 asp.net的韩语支持 视频无法全屏播放 datagrid的UpdateCommand事件中死活取不到编辑项的正确值,why? 求救!!!怎么实现这样的功能??? 关于 Microsoft HTML Help Workshop 的问题?
Label lb = (Label)e.Item.FindControl("Label1");
lb.Text........
如果是存在控件的模板列,就是Label lb = (Label)e.Item.FindControl("Label1");
(Label)e.Item.FindControl("Label1");