How toI fix the gridview column width in ASP.NET

You can fix the width as shown below. Pay attention to the bolded lines.
<Columns>
<asp:BoundField DataField="" HeaderText="" ItemStyle-Width="5%" ItemStyle-VerticalAlign="Top" />
<asp:BoundField DataField="" HeaderText="" ItemStyle-Width="25%" ItemStyle-VerticalAlign="Top" />
<asp:BoundField DataField="" HeaderText="" ItemStyle-Width="30%"
ItemStyle-VerticalAlign="" />
<asp:BoundField DataField="" HeaderText="" ItemStyle-Width="25%" ItemStyle-VerticalAlign="Top" />
<asp:BoundField DataField="" HeaderText="" ItemStyle-Width="10%"
ItemStyle-VerticalAlign="Top" />
</Columns>

Share this

Related Posts

Previous
Next Post »