GridView - fixando tamanho de uma coluna

<< Click to Display Table of Contents >>

Navigation:  ASP.NET > ASP Controls > GridView >

GridView - fixando tamanho de uma coluna

Previous pageReturn to chapter overviewNext page

Basta colocar no aspx

 

 <asp:HyperLinkField DataTextField="nm_tarefa" HeaderText="Descrição" ItemStyle-Width="500px" DataNavigateUrlFields="id" DataNavigateUrlFormatString="~/Cadastro.aspx?id={0}"> 

      <HeaderStyle HorizontalAlign="Left" />

 </asp:HyperLinkField>

 

 <asp:BoundField DataField="nm_programador" HeaderText="Programador" ItemStyle-Width="100px">

     <HeaderStyle HorizontalAlign="Left" />

 </asp:BoundField>