主要是利用sql语句实现分阶段统计,留用备查。
select sum( case when 校名次<=10 then 1 else 0 end) from xx
等效语句
select count( case when 校名次<=10 then 1 end) from xx
一、效果图
二、主要实现
-
Xaml
<!--用于显示 百名阶段比较-->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<c:FButton FIcon="" Command="{Binding DatagridToExcelCommand}" HorizontalAlignment="Right"
CommandParameter="{Binding ElementName=mainGrid, Path=ItemsSource}">导出至Excel</c:FButton>
<DataGrid x:Name="mainGrid"