protected void GvSelect_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.RowState == DataControlRowState.Normal e.Row.RowState DataControlRowState.Alternate)
{
Label test = e.Row.FindControl("Label1") as Label;
if (test.Text.Trim() == "1")
{
test.Text = "已阅读";
}
else {
test.Text = "未阅读";
}
}
} // test.Text = view["status"].ToString();
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2021-04-10
  • 2022-12-23
  • 2021-12-22
  • 2021-11-18
  • 2022-01-14
相关资源
相似解决方案