Set the width of a gridView column

  • Thread starter Thread starter Samuel Shulman
  • Start date Start date
S

Samuel Shulman

I simply want to set the width of a column in the DataGrid Control

Is there any way of doing that?

Thank you,
Samuel
 
Try setting the width attribute of the appropriat Style element:

<asp:GridView runat="server" ID="myGrid">
<Columns>
<asp:TemplateField>
<ItemTemplate>
</ItemTemplate>
<ItemStyle Width="100" />
</asp:TemplateField>
</Columns>
</asp:GridView>



I simply want to set the width of a column in the DataGrid Control

Is there any way of doing that?

Thank you,
Samuel
 
Back
Top