GridView - formatando colunas

<< Click to Display Table of Contents >>

Navigation:  ASP.NET > ASP Controls > GridView >

GridView - formatando colunas

Previous pageReturn to chapter overviewNext page

Default.aspx

 

      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">

          <Columns>

              <asp:BoundField DataField="Id" HeaderText="Código" />

              <asp:BoundField DataField="Nome" HeaderText="Nome" />

              <asp:BoundField DataField="Valor" DataFormatString="{0:0.00}" HeaderText="Valor" />

              <asp:BoundField DataField="Data" DataFormatString="{0:dd/MMM/yy}" HeaderText="Data" />

          </Columns>

      </asp:GridView>