110,534
社区成员
发帖
与我相关
我的任务
分享
<Window x:Class="GroupBox.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<DataGrid Name="lstSalary" FontSize="15" Grid.Row="1" Grid.Column="1"
AutoGenerateColumns="False" ItemsSource="{Binding}" >
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Binding="{Binding Name}" CanUserSort="True" />
<DataGridTextColumn Header="Age" Binding="{Binding Age}" CanUserSort="True" />
</DataGrid.Columns>
</DataGrid>
</Grid>
</Window>