GridViewColumn.CellStyle Property
Gets the style settings used to paint column cells.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public virtual GridViewCellStyle CellStyle { get; }
#Property Value
Type | Description |
---|---|
Grid |
A Grid |
#Remarks
Use the CellStyle property to specify the appearance of cells within an individual column. These style settings override the style settings common to all cells within a Grid View (GridViewStyles.Cell).
#Limitations
All settings set to the CellStyle property are overridden by the conditional formatting styles. However, all styles specified in the CellStyle.CssClass property are merged with the conditional formatting styles. To preserve the previously added cell styles, use the CssClass property as shown below.
.cellStyle {
vertical-align: top !important;
}
<CellStyle VerticalAlign="Top" CssClass="cellStyle"></CellStyle>