Data Entry Grid

WPF View XAML Namespace

xmlns:deg="clr-namespace:RingSoft.DataEntryControls.WPF.DataEntryGrid;assembly=RingSoft.DataEntryControls.WPF"

WPF View Element XAML

<deg:DataEntryGrid x:Name="DetailsGrid" Manager="{Binding Path=DetailsGridManager}" ReadOnlyMode="{Binding Path=DetailsGridReadOnlyMode}">
 <deg:DataEntryGrid.Columns>
   <deg:DataEntryGridCustomControlColumn ColumnId="{x:Static vmlib:SalesEntryDetailsGridManager.LineTypeColumnId}" ContentTemplate="{StaticResource SalesLineTypeContent}" Header="Line Type" Width="100"/>
   <deg:DataEntryGridTextColumn ColumnId="{x:Static vmlib:SalesEntryDetailsGridManager.ItemColumnId}" Header="Item" Width="220"/>
   <deg:DataEntryGridTextColumn ColumnId="{x:Static vmlib:SalesEntryDetailsGridManager.QuantityColumnId}" Header="Quantity" Alignment="Right" Width="75"/>
   <deg:DataEntryGridTextColumn ColumnId="{x:Static vmlib:SalesEntryDetailsGridManager.PriceColumnId}" Header="Price" Alignment="Right" Width="100"/>
   <deg:DataEntryGridTextColumn ColumnId="{x:Static vmlib:SalesEntryDetailsGridManager.ExtendedPriceColumnId}" Header="Extended&#10;Price" Alignment="Right" Width="100"/>
   <deg:DataEntryGridTextColumn ColumnId="{x:Static vmlib:SalesEntryDetailsGridManager.DiscountColumnId}" Header="Discount" Alignment="Right" Width="75"/>
 </deg:DataEntryGrid.Columns>
 <deg:DataEntryGrid.DisplayStyles>
   <StaticResource ResourceKey="CommentCellStyle"/>
   <StaticResource ResourceKey="NonInventoryCellStyle"/>
   <deg:DataEntryGridDisplayStyle DisplayId="{x:Static vmlib:SalesEntryDetailsGridManager.SpecialOrderDisplayId}">
     <deg:DataEntryGridDisplayStyle.BackgroundBrush>
       <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
         <GradientStop Color="#FFE8AEB7" Offset="0"/>
         <GradientStop Color="LightPink" Offset="0.5"/>
       </LinearGradientBrush>
     </deg:DataEntryGridDisplayStyle.BackgroundBrush>
    </deg:DataEntryGridDisplayStyle>
    <StaticResource ResourceKey="NegativeCellStyle"/>
  </deg:DataEntryGrid.DisplayStyles>
</deg:DataEntryGrid>