grid.Column("RoleId", "角色名称", (p) => { var role = string.Empty; if (p.RoleId == 1) { role = "普通用户"; } if (p.RoleId == 2) { role = "管理员"; } return role; }, "g-txt"),