---
order: 22.5
title:
  en-US: Custom Row Styling
  zh-CN: 修改每行的样式
---

## zh-CN

可以使用 `RowClassName` 给特定的行设置 class。也可以用 `ExpandedRowClassName` 给特定的展开行设置 class。

注意：如果设置了固定列，则还需要为单元格指定样式。

## en-US

Rows can be given a class by utilizing the `RowClassName` property. In this example, the row is given a class of `danger` if the data item's `Score` property is greater than 70.

Note: If you set a fixed column, you also need to specify a style for the cell.