protected void GridDoc_RowDataBound(object sender, GridRowEventArgs e) { DataRowView row = e.DataItem as DataRowView; if (row != null) { string flag = row["FLAG"].ToString(); FineUIPro.BoundField flagcol = GridDoc.FindColumn("FLAG") as FineUIPro.BoundField; if (flag == "N") { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color1"; } if (flag == "M") { e.CellAttributes[flagcol.ColumnIndex]["data-color"] = "color2"; } } }