Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have to use the property CellStyle</p> <pre><code>&lt;sdk:DataGrid AutoGenerateColumns="False" ColumnWidth="*" RowDetailsVisibilityMode="Collapsed" x:Name="grdSalesOrder" TabIndex="22" ItemsSource="{Binding Path=PCVSaleOrders}" SelectionMode="Single" Height="{Binding Path=GridHeight}" Width="953"&gt; &lt;sdk:DataGrid.Columns&gt; &lt;sdk:DataGridTextColumn CellStyle="MyStyle" Binding="{Binding Path=CustomerName}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" Header="Customer Name" IsReadOnly="True" /&gt; &lt;sdk:DataGridTextColumn CellStyle="MyStyle" Binding="{Binding Path=Status}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" Header="Status" IsReadOnly="True" /&gt; &lt;sdk:DataGridTextColumn CellStyle="MyStyle" Binding="{Binding Path=PriceAmt}" CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto" Header="Price Amount" IsReadOnly="True"/&gt; </code></pre> <p>And you style can be set like this :</p> <pre><code> &lt;Style x:Key="MyStyle" TargetType="sdk:DataGridCell"&gt; &lt;Setter Property="Background" Value="Transparent" /&gt; &lt;Setter Property="HorizontalContentAlignment" Value="Center" /&gt; &lt;Setter Property="IsTabStop" Value="False" /&gt; &lt;Setter Property="Template" Value="{StaticResource DataGridCellTemplate}" /&gt; &lt;Setter Property="VerticalContentAlignment" Value="Center" /&gt; &lt;/Style&gt; </code></pre> <p>Now you can chose what you want to change.. Hope it helps!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload