Web Application List View

I need to list record details on an .aspx page. DataGridView is not available for .aspx. I need a table with 4 columns and an infinite number of rows.

Which item in the Toolbox is the best (and easiest) for me to use.

Many thanks

  • In ASP.NET you could use a ListView control to display record details. There are a number of 3rd party grid controls available also that you could use, depending on your requirements.

    I would recommend that for questions related to ASP.NET programming which is a Microsoft technology, that you might try searching Microsoft sites instead of this forum as you might have better luck getting a response.

    An example of using a ListView can be found here.

  • <h1>Selecione um Registro</h1>

    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateSelectButton="false"
    AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
    Width="400px" OnPageIndexChanging="GridView1_PageIndexChanging" CssClass="texto_grid">
    <EmptyDataRowStyle CssClass="texto_grid" Wrap="False" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" CssClass="texto_site" />
    <EditRowStyle BackColor="#999999" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="true" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" Font-Size="10pt" Wrap="False" />
    <PagerSettings Mode="NextPrevious"
    Position="Bottom"
    PageButtonCount="10"
    NextPageText="Próximo"
    PreviousPageText="Anterior"
    PreviousPageImageUrl="~/Images/Gnome-Go-Previous-32.png"
    NextPageImageUrl="~/Images/Gnome-Go-Next-32.png" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="true" ForeColor="White" Wrap="False" />
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
    <asp:BoundField DataField="Codigo" HeaderText="Código" SortExpression="Codigo" />
    <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
    <asp:BoundField DataField="Documento" HeaderText="Documento" SortExpression="Documento" />
    <asp:CommandField ShowSelectButton="True" InsertImageUrl="~/Images/logo.png" />
    </Columns>
    </asp:GridView>



    method-id LoopClientesTel.
    01 LoopCliClass type TrataArqClass.
    01 LstCliente list[type CustData].
    procedure division.
    set TxConsultaTel::Text to 1
    set lnktelefone-cli to txTelefone::Text
    set LoopCliClass to new TrataArqClass.
    set LstCliente to LoopCliClass::LoopClientesTel(lnk-cliente)
    set GridView1::DataSource to LstCliente
    invoke GridView1::DataBind
    exit method.
    end method.