我有一个包含 100 行的网格视图,我希望用户可以选择他想要查看的网格中的行数(表示该标题的标题和数据)。你有什么想法。例子:
SL NO NAME DATE END DATE SUB TOTAL TOTAL
==================================================================================
==================================================================================
用户可以选择他只想在 gridview 中查看 SL NAME SUB TOTAL TOTAL,之后网格将显示这样的数据
SL NAME SUB TOTAL TOTAL
==============================================================================
==============================================================================
我像这样绑定
<data:ActiveOrdersDataSource ID="ActiveOrdersDataSourcebyCompany" runat="server" SelectMethod="GetPaged" EnablePaging="True" EnableSorting="True" EnableDeepLoad="True">
<DeepLoadProperties Method="IncludeChildren" Recursive="False">
<Types>
<data:ActiveOrdersProperty Name="Clients" />
<data:ActiveOrdersProperty Name="Companies" />
<data:ActiveOrdersProperty Name="Drivers" />
<data:ActiveOrdersProperty Name="SalesPeople" />
<data:ActiveOrdersProperty Name="ServiceTypes" />
<data:ActiveOrdersProperty Name="VehicleTypes" />
<data:ActiveOrdersProperty Name="Zones" />
</Types>
</DeepLoadProperties>
<Parameters>
<asp:SessionParameter Name="CompanyId" SessionField="CompanyId" Type="String" />
<data:SqlParameter Name="WhereClause" UseParameterizedFilters ="false">
<Filters>
<data:ActiveOrdersFilter Column="CompanyId" ControlID="ddlCompany" PropertyName="SelectedValue" ComparisionType="Equals" />
<data:ActiveOrdersFilter Column="AccountNumber" ControlID="ddlAccount" PropertyName="SelectedValue" ComparisionType="Equals" />
<data:ActiveOrdersFilter Column="ServiceTypeId" ControlID="ddlService" PropertyName="SelectedValue" ComparisionType="Equals" />
<data:ActiveOrdersFilter Column="VehicleTypeId" ControlID="ddlVehicle" PropertyName="SelectedValue" ComparisionType="Equals" />
<data:ActiveOrdersFilter Column="StatusId" ControlID="ddlStatus" PropertyName="SelectedValue" ComparisionType="Equals" />
<data:ActiveOrdersFilter Column="OrderNo" ControlID="txtOrderNumber" ComparisionType="Contains" />
</Filters>
</data:SqlParameter>
</Parameters>
</data:ActiveOrdersDataSource>