如何随意取得datagrid中的任何行列值? 想达到这样的效果:点击datagrid中的某单元格时候,将此单元格数值传给 文本框! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考protected void DataGrid1_ItemDataBound(object sender, DataGridItemEventArgs e) { if (e.Item.ItemType == DataControlRowType.DataRow) { e.Item.Attributes.Add("onclick", "if(document.oldTr !=null){document.oldTr.runtimeStyle.cssText='';}this.runtimeStyle.cssText='background-color:red';document.oldTr=this;window.showModelessDialog('bb.aspx?id=" + e.Row.Cells[0].Text + "');"); } } 传给 文本框?文本框在哪里的 ?单独的?DataGrid里的? 两个独立的1 就是独立的TEXT2 另外一个datagrid里的 某帮定TEXT Click the link to solve your problem.Good luck! 在事务中插入存储过程 asp.net随机数的问题! 急:DataList嵌套CheckBoxList绑定数据库 【问个很傻很天真的问题】关于新建web工程的 这样的数据库结构,如何排列,同时排列第一条记录和最后一条记录 SQL语句问题 急,急,急!---FreeTextBox内容保存到数据库中问题 急求类似于深圳之窗里面的跳蚤市场的源码 谁有免费的IIS日志分析工具,最好是中文的? 各位高手们,进来看一下,帮小弟一下,在下不胜感激 VS2005中TabStrip和MultiPage不能正常控制的问题? 自己做一个服务器控件,如何将用户设定值生成样式并在<head></head>内输出?
{
if (e.Item.ItemType == DataControlRowType.DataRow)
{
e.Item.Attributes.Add("onclick", "if(document.oldTr !=null){document.oldTr.runtimeStyle.cssText='';}this.runtimeStyle.cssText='background-color:red';document.oldTr=this;window.showModelessDialog('bb.aspx?id=" + e.Row.Cells[0].Text + "');");
}
}
1 就是独立的TEXT
2 另外一个datagrid里的 某帮定TEXT