ComponentOne FlexGrid for WinForms
GetCellStyle(Int32,Int32) Method

C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > GetCellStyle Method : GetCellStyle(Int32,Int32) Method
Row index.
Column index.
Gets a custom CellStyle associated with a cell.
Syntax
'Declaration
 
Public Overloads Function GetCellStyle( _
   ByVal row As Integer, _
   ByVal col As Integer _
) As CellStyle
public CellStyle GetCellStyle( 
   int row,
   int col
)

Parameters

row
Row index.
col
Column index.

Return Value

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 method.
See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List