本文主要是介绍C# WPF DataGrid使用,包括隔行多选,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
C# WPF DataGrid使用,包括隔行多选
- xaml
- cs
xaml
<ScrollViewer VerticalAlignment="Stretch" x:Name="scrollviewer" VerticalScrollBarVisibility="Hidden" HorizontalScrollBarVisibility="Disabled" TouchDown="ScrollViewer_TouchDown" TouchMove="ScrollViewer_TouchMove" TouchUp="ScrollViewer_TouchUp"><!--<DataGrid CanUserDeleteRows="False" CanUserAddRows="False" IsReadOnly="True" SelectionUnit="FullRow" Name="datagrid" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" VerticalAlignment="Top" AutoGenerateColumns="True" Background="{x:Null}" BorderBrush="{x:Null}">--><DataGrid AutoGenerateColumns="True" IsReadOnly="True" Name="dataGrid" Background="White" GridLinesVisibility="All" Margin="5" HorizontalAlignment="Center" CanUserAddRows="False"HeadersVisibility="Column" AlternationCount="2" BorderThickness="1" FontSize="22" SelectedCellsC
这篇关于C# WPF DataGrid使用,包括隔行多选的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!