protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                System.Data.DataRowView dv = e.Row.DataItem as System.Data.DataRowView;

                e.Row.Cells[2].Text = status.ConvertKeyToValue.DefectsTypeValue(dv.Row["类型"]);
                e.Row.Cells[3].Text = status.ConvertKeyToValue.DefectsLevelValue(dv.Row["等级"]);

            }
        }

 

posted on 2012-04-26 15:30  深海大虾  阅读(978)  评论(0编辑  收藏  举报