[]
        
(Showing Draft Content)

C1.Win.C1TrueDBGrid.BaseGrid.View.GetCellStyle

GetCellStyle Method

GetCellStyle(int, C1DisplayColumn, bool, bool)

Returns a Style that is applied to the specified cell.

Declaration
public Style GetCellStyle(int row, C1DisplayColumn dc, bool ignoreSelection = false, bool ignoreFetchRowStyle = false)
Parameters
Type Name Description
int row

Row index.

C1DisplayColumn dc

Split column.

bool ignoreSelection

Ignore selection style.

bool ignoreFetchRowStyle

Ignore user custom style.

Returns
Type Description
Style
Remarks

The returned value is a copy of actual Style object and it cannot be changed in the event.

GetCellStyle(int, int, string, bool)

Returns the style associated with a given cell.

Declaration
protected virtual Style GetCellStyle(int row, int col, string celltext, bool global = false)
Parameters
Type Name Description
int row

Row to fetch the style for.

int col

Column to fetch the style for.

string celltext

The text of the cell.

bool global

Ignore user custom style.

Returns
Type Description
Style