Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
7 つのテキスト ボックスと合計 8 つの列を含むグリッド ビューを使用しています。プレーンな Web フォームでデザインすると、正常に表示されます。しかし、それをマスター ページに追加すると、グリッド ビューがマスター ページの境界線を越えてしまいます。グリッド ビュー コントロールの境界線の幅を変更しようとしましたが、変更されません。この問題を解決する方法を教えてください。グリッド ビュー コントロールのサイズを変更したいだけです。
GridView をスクロール可能なパネルに配置する必要があります。
<asp:Panel ID="Panel2" runat="server" ScrollBars="Both" Width="100%"> <asp:GridView ID="GridView1" runat="server"> </asp:GridView> </asp:Panel>