作成日: 2013/06/21 最終更新日: 2013/06/21
文書種別
使用方法
詳細
セルの枠線の色を変更するには、DataGridCellPresenterのスタイルを作成してBorderThickness/BorderBrushプロパティを設定し、C1DataGrid.CellStyleプロパティを作成したスタイルに設定します。
◎サンプルコード(XAML)
◎サンプルコード(XAML)
<UserControl.Resources>
<Style x:Key="cellStyle" TargetType="c1:DataGridCellPresenter">
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="1" />
</Style>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<c1:C1DataGrid Name="c1DataGrid1" CellStyle="{StaticResource cellStyle}" />
</Grid>
<Style x:Key="cellStyle" TargetType="c1:DataGridCellPresenter">
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="1" />
</Style>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<c1:C1DataGrid Name="c1DataGrid1" CellStyle="{StaticResource cellStyle}" />
</Grid>
旧文書番号
80170