Yes, I do have to use a template, after a bit of stuffing around this one
seems to work after I assign it to the column in code -- Greg

 

<Style x:Key="DateCellStyle2" TargetType="{x:Type DataGridCell}">

  <Setter Property="Template">

    <Setter.Value>

      <ControlTemplate TargetType="{x:Type DataGridCell}">

        <Border BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}">

          <ContentPresenter HorizontalAlignment="Center"/>

        </Border>

      </ControlTemplate>

    </Setter.Value>

  </Setter>

</Style>

 

_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to