1, in the editing column, there is a direct set column width! If you don't want cell content to hold the cell large, add a style
<style>table{table-layout:fixed}</style>, meaning that each column is fixed to the original set style, no longer changes, the excess part of the hidden
2 . You can set the properties of a column under the Edit column in the GridView
3 . You must have set the Height property of the GridView, so that you have fixed the high level of the GridView, and when the data is insufficient the height of the GridView will not change, you can delete the height attribute of the GridView. If the layout is affected, the following code can be added to the RowDataBound data of the GridView:
E.row.attributes.add ("style", "height:43px"); This sets the line height
The automatically generated GridView cannot modify column widths, and you can use ItemStyle to set
Copy Code code as follows:
<asp:gridview id= "GridView1" runat= "Server" autogeneratecolumns= "False" >
<Columns>
<asp:boundfield datafield= "id" >
<itemstyle width= "100px"/>
</asp:BoundField>
</Columns>
</asp:GridView>
4,
One, Gridview-->columns---->headerstyle, gridview-->columns---->itemstyle--->height, width, set the width and height of the column.
Second,Sets the Wrap property below the current column to False. It means that you cannot wrap the line automatically. The first step on the internet to search a basket, but found that these results are not what they want. With the second step, I think your problem will be solved.