protected void GVlan_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[2].Text == "0 ")
{
e.Row.Cells[2].Text = "面议 ";
}
}
}
究竟怎么样才能使着段代码对GVlan这个gridview的第3列发生作用呢?
------解决方案--------------------------------------------------------
在if (e.Row.Cells[2].Text == "0 ")上做断点跟踪
------解决方案--------------------------------------------------------
特意接分而来
把e.Row.Cells[2].Text打出来看看是什么