I am having trouble to grouping the data from the below table format and trying to group the data as mentioned in second table format
legacy subid converted licPart count
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL AC CE E-LTU LIC-CP-EN-100 100
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL OB USR E-LTU LIC-CP-EN-100 100
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL OG EP E-LTU LIC-CP-EN-100 100
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL AC CE E-LTU LIC-CP-EN-100 100
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL OB USR E-LTU LIC-CP-EN-100 100
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL OG EP E-LTU LIC-CP-EN-100 100
Ent 1K EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL AC CE E-LTU LIC-CP-EN-1K 1000
Ent 1K EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL OB USR E-LTU LIC-CP-EN-1K 1000
Ent 1K EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL OG EP E-LTU LIC-CP-EN-1K 1000
and I am trying to get the data as like this below for further assigning to repeater to display the info
Ent 100 EP Lic E-LTU 7ks7gp-qc42sn-g7zk0q-7pzmb7-xdp6yb NL AC CE E-LTU LIC-CP-EN-100 100
NL OB USR E-LTU
NL OG EP E-LTU
Ent 100 EP Lic E-LTU NL AC CE E-LTU LIC-CP-EN-100 100
NL OB USR E-LTU
NL OG EP E-LTU
Ent 1K EP Lic E-LTU NL AC CE E-LTU LIC-CP-EN-1K 1000
NL OB USR E-LTU
NL OG EP E-LTU
I tried with the grid view during rowdatabound event and its working fine but i am not able to get the same with the repeater. I am sure we need to group the data before we are assigning it to the repeater
But I am not sure how to group the data as like mentioned above
This is my repeater code
<asp:Repeater ID="RepeaterEnterprise" runat="server" OnItemDataBound="ItemBound">
<HeaderTemplate>
<table>
<tr>
<th>Avaialable Endpoints
</th>
<th>Converted Endpoints
</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<table>
<tr>
<td>
<asp:TextBox runat="server" ID="txtAvaialble" Text='<%#Eval("LicenseCount") %>' ReadOnly="true">
</asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txtConverted" Text='' ReadOnly="true">
</asp:TextBox>
</td>
<td>
<tr>
<td>
<asp:Label ID="lblcount" runat="server" Text='<%# Eval("Converted") %>'></asp:Label>
</td>
<td>25*
</td>
</tr>
</table>
<table>
<tr>
<td>
<asp:TextBox runat="server" ID="txtEndpoints" Text=''>
</asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txtTotalEndPoints" Text='' ReadOnly="true">
</asp:TextBox>
</td>
</tr>
</table>
</td>
</tr>
</ItemTemplate>
<SeparatorTemplate>
<tr>
<td>
</td>
</tr>
</SeparatorTemplate>
<AlternatingItemTemplate>
<table>
<tr>
<td>
<asp:TextBox runat="server" ID="txtAvaialbleEndPoints" Text='<%#Eval("Count") %>' ReadOnly="true">
</asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txtConvertedEndPoints" Text='' ReadOnly="true">
</asp:TextBox>
</td>
<td>
<tr>
<td>
<asp:Label ID="lblcountryname" runat="server" Text='<%# Eval("Converted") %>'></asp:Label>
</td>
<td>25*
</td>
</tr>
</table>
<table>
<tr>
<td>
<asp:TextBox runat="server" ID="txtEndpoints" Text=''>
</asp:TextBox>
</td>
<td>
<asp:TextBox runat="server" ID="txtTotalEndPoints" Text='' ReadOnly="true">
</asp:TextBox>
</td>
</tr>
</table>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
Could any one have any idea on this solution how to make grouping?