public string GetRowCss(View view, Durados.Web.Mvc.Specifics.Projects.SanDisk.Allegro1DataSet.v_TTPRow row) { if (row.StateId == 4) { return("cancelTtpState"); } return(base.GetRowCss(view, row)); }
public string GetCellCss(Field field, Durados.Web.Mvc.Specifics.Projects.SanDisk.Allegro1DataSet.v_TTPRow row) { if (field.FieldType == FieldType.Parent && ((Durados.Web.Mvc.ParentField)field).GetDataColumns()[0].ColumnName == "StateId") { if (row.StateId == 2) { return("alertTtpState"); } } return(base.GetCellCss(field, row)); }