【发布时间】:2020-03-01 04:33:58
【问题描述】:
我有一个网格视图,我想使用引导程序在移动/平板电脑视图上隐藏一列(例如出生日期。请参阅代码)。如何实现?我找到了解决方案,但使用了 bootstrap 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>
【问题讨论】:
标签: javascript mobile bootstrap-4