[]
Gets a custom CellStyle associated with a cell.
public CellStyle GetCellStyle(int row, string colName)
Type | Name | Description |
---|---|---|
int | row | Row index. |
string | colName | Column name. |
Type | Description |
---|---|
CellStyle | CellStyle object associated with the cell, or null if the cell doesn't have a custom style. |
If the cell doesn't have a custom style, the grid paints it using one of the built-in styles. The built-in style is selected based on the cell position and state (fixed, scrollable, highlighted, etc). To retrieve the style that will be used to paint the cell (custom or built-in) use the GetCellStyleDisplay(int, int) method.
Gets a custom CellStyle associated with a cell.
public CellStyle GetCellStyle(int row, int col)
Type | Name | Description |
---|---|---|
int | row | Row index. |
int | col | Column index. |
Type | Description |
---|---|
CellStyle | CellStyle object associated with the cell, or null if the cell doesn't have a custom style. |
If the cell doesn't have a custom style, the grid paints it using one of the built-in styles. The built-in style is selected based on the cell position and state (fixed, scrollable, highlighted, etc). To retrieve the style that will be used to paint the cell (custom or built-in) use the GetCellStyleDisplay(int, int) method.