我有一个gridview,我想使用引导程序在移动/平板电脑视图中隐藏一列(例如BirthDate。请参见代码)。如何实现呢?我找到了解决方案,但使用了引导程序3。预先谢谢你。
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" CellSpacing="-1" HorizontalAlign="Center" Height="80px" Width="800px" AutoGenerateColumns="False" EnableModelValidation="True" OnPageIndexChanging="GridView1_PageIndexChanging">
<RowStyle BackColor="#FFFBD6" ForeColor="#333333" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" HorizontalAlign="Center" />
<Columns>
<asp:BoundField DataField="EmployeeID" HeaderText="Employee">
<HeaderStyle BorderColor="#CC9966" />
</asp:BoundField>
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Surname" HeaderText="Surname" />
<asp:BoundField DataField="BirthDate" HeaderText="Date of Birth">
<ItemStyle HorizontalAlign="Right" />
</asp:BoundField>
</Columns>
</asp:GridView>