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.
データソースがOracleデータベースであるグリッドビューがあります。Webブラウザに表示されているときに(グリッドビューで)列幅を変更する方法を知りたいです。
ありがとうございました
GridView タグを使用して列を直接設定できます。
<asp:GridView ID="myGrid" runat="server"> <Columns> <asp:BoundField DataField="myColumn" ControlStyle-Width="25%" /> </Columns> </asp:GridView>
列に CSS クラスを割り当て、CSS を使用して列幅を設定することもできます。