[]
        
(Showing Draft Content)

C1.Win.FlexGrid.C1FlexGridBase.GetCellStyle

GetCellStyle Method

GetCellStyle(int, string)

Gets a custom CellStyle associated with a cell.

Declaration
public CellStyle GetCellStyle(int row, string colName)
Public Function GetCellStyle(row As Integer, colName As String) As CellStyle
Parameters
Type Name Description
int row

Row index.

string colName

Column name.

Returns
Type Description
CellStyle

CellStyle object associated with the cell, or null if the cell doesn't have a custom style.

Remarks

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.

GetCellStyle(int, int)

Gets a custom CellStyle associated with a cell.

Declaration
public CellStyle GetCellStyle(int row, int col)
Public Function GetCellStyle(row As Integer, col As Integer) As CellStyle
Parameters
Type Name Description
int row

Row index.

int col

Column index.

Returns
Type Description
CellStyle

CellStyle object associated with the cell, or null if the cell doesn't have a custom style.

Remarks

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.