DataGridのセル選択枠を消す
DataGridのオプションを行選択(SelectionUnit="FullRow")にしている場合でも、
選択したセルに枠が表示されてしまう。
<DataGrid Margin="10" ItemsSource="{Binding Path=ArrayData}" AutoGenerateColumns="False" SelectionMode="Single" SelectionUnit="FullRow">
BorderThicknessを0にすることで、この枠を消去することができる。
<DataGrid Margin="10" ItemsSource="{Binding Path=ArrayData}" AutoGenerateColumns="False" SelectionMode="Single" SelectionUnit="FullRow">
<DataGrid.CellStyle>
<Style TargetType="DataGridCell" BasedOn="{StaticResource {x:Type DataGridCell}}">
<Setter Property="BorderThickness" Value="0" />
</Style>
</DataGrid.CellStyle>
ディスカッション
コメント一覧
まだ、コメントがありません