FlexGrid for WinForms
GetCellStyle(Int32,String) Method



Row index.
Column name.
Gets a custom CellStyle associated with a cell.
Syntax
'Declaration
 
Public Overloads Function GetCellStyle( _
   ByVal row As Integer, _
   ByVal colName As String _
) As CellStyle
'Usage
 
Dim instance As C1FlexGridBase
Dim row As Integer
Dim colName As String
Dim value As CellStyle
 
value = instance.GetCellStyle(row, colName)
public CellStyle GetCellStyle( 
   int row,
   string colName
)
public:
CellStyle^ GetCellStyle( 
   int row,
   String^ colName
) 

Parameters

row
Row index.
colName
Column name.

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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback