I am trying to re-size columns width in my gridview that I created using this tutorial, but I am unable to do so. I have been through tens of ways by googling but non of them worked.
Code that is creating problem
<asp:BoundField DataField="CustomerID" HeaderText="CustomerID" HtmlEncode="False" />
<asp:BoundField DataField="Name" HeaderText="Name" HtmlEncode="False" />
<asp:BoundField DataField="Address" HeaderText="Address" HtmlEncode="False" />
<asp:TemplateField> // I don't want to show it in my gridview as it is just being
// for showing nested gridview
<ItemTemplate>
</td></tr>
I tried to change column visiblity but then show/hide button doesn't work anymore.
This is how my gridview looks like,
I want to hide last empty column or minimize it's width so it should be hidden and increase description column width, decrease ID number column width and also first column's width,
I even tried CSS way but then it says width 0px however no change in width and ControlStyle-Width="10%"
but it didn't worked.