<DataGrid x:Class="QParamListV"
          xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
          xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
          AutoGenerateColumns="False"
          CanUserSortColumns="False"
          CanUserResizeColumns="False"
          CanUserResizeRows="False"
          CanUserReorderColumns="False"
          SelectionMode="Single"
          ScrollViewer.CanContentScroll="True" 
          ScrollViewer.VerticalScrollBarVisibility="Auto"
          ScrollViewer.HorizontalScrollBarVisibility="Hidden"
          Margin="0,0,0,5">

   <DataGrid.Columns>

      <!--BWType-->
      <DataGridTextColumn Binding="{Binding sBWType}"
                          Width="40"
                          IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.Type_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Nome-->
      <DataGridTextColumn Binding="{Binding sName}"
                          Width="50"
                          IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.NAM_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Descrizione-->
      <DataGridTextColumn Binding="{Binding sDescription}"
                          Width="1*"
                          IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.Description_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Default-->
      <DataGridTextColumn Binding="{Binding sDefault}"
                          Width="65">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.Default_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Minimo-->
      <DataGridTextColumn Binding="{Binding sMin}"
                          Width="65"
                          IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.Min_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
      <!--Massimo-->
      <DataGridTextColumn Binding="{Binding sMax}"
                          Width="65"
                          IsReadOnly="True">
         <DataGridTextColumn.HeaderTemplate>
            <DataTemplate>
               <TextBlock Text="{Binding DataContext.Max_Msg,RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
            </DataTemplate>
         </DataGridTextColumn.HeaderTemplate>
      </DataGridTextColumn>
   </DataGrid.Columns>

</DataGrid>