protected void GridView_master_SelectedIndexChanged(object sender, EventArgs e)
{
GridViewRow row = GridView_master.SelectedRow;
String strTemp = row.Cells[0].Text
}
debug 进来以后
从 row.Cells[0] 到 row.Cells[10] 都得到空值,但表格中都有数据,为什么?
------解决方案--------------------------------------------------------
模板列?
------解决方案--------------------------------------------------------
你干嘛不用DATASET装啊。
------解决方案--------------------------------------------------------
DataSet ds=new DataSet();
ds.fill(ds, "tablename ")
String strTemp = ds.table[ "tablename "].rows.Cells[0].Text
------解决方案--------------------------------------------------------
莫非重新绑定了??