User-271186128 posted
Hi fsze88,
is a way to set row width of each rows without asp:BoundField tag?
You could use CSS selector to find the gridview table, and set the
td width attribute.
Code like this:
<style type="text/css">
.Grid {
border: 1px solid black;
table-layout: fixed;
}
.Grid th {
width: 300px;
background-color: antiquewhite;
}
.Grid td{
text-align:center;
width:300px;
background-color:aquamarine;
}
</style>
and
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="true" CellPadding="4"
ForeColor="#333333" GridLines="None" CssClass="Grid" HeaderStyle-CssClass="header"
DataKeyNames="Indexid" DataSourceID="SqlDataSource1">
</asp:GridView>
the output as below:

Best regards,
Dillion