Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION
Shirley2 Trusted Contributor.
Trusted Contributor.
376 views

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

0 Likes
2 Replies
Micro Focus Expert
Micro Focus Expert

RE: Web Application List View

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.

0 Likes
WPita_MMSIS Super Contributor.
Super Contributor.

RE: Web Application List View

<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.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.