62,243
社区成员




protected void gv_num_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label lbl_one = e.Row.FindControl("one") as Label;
Label lbl_two = e.Row.FindControl("two") as Label;
if (lbl_one.Text == "1")
lbl_one.Text = "xxxx";
else if(lbl_one.Text=="2")
lbl_one.Text = "yyyy";
if (lbl_two.Text == "0")
lbl_two.Text = "zzzz";
else if (lbl_two.Text == "1")
lbl_two.Text = "wwww";
}
}