Xceed DataGrid for Silverlight Documentation
CellStyle Property (DataGridControl)


Gets or sets the style that will be applied to all data cells in the grid.
Syntax
'Declaration
 
Public Property CellStyle As Style
'Usage
 
Dim instance As DataGridControl
Dim value As Style
 
instance.CellStyle = value
 
value = instance.CellStyle
public Style CellStyle {get; set;}

Property Value

The Style that will be applied to all data cells (see DataCell class) in the grid. The specified style must target the DataCell type (see TargetType property of Style class) otherwise an exception will be thrown.
Remarks

If a style is explicitly provided via the CellStyle property, it will override any implicit styles.

The CellStyle property is for Blend usability. It is recommend to create an implicit style that targets DataCell if a style that affects all the data cells in a grid is needed.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Send Feedback