.aspx
<asp:GridView ID="gvRepeter" AutoGenerateColumns="false" AllowPaging="true" runat="server"
Width="100%" OnRowDataBound="gvRepeter_RowDataBound"
onsorting="gvRepeter_Sorting">
<columns>
<asp:BoundField HeaderText="#">
<HeaderStyle Width="2%" CssClass="alternate_heading" />
<itemstyle horizontalalign="Right" />
<asp:TemplateField>
<itemtemplate>
<asp:Repeater ID="rpEmpSearch" runat="server" OnItemCommand="rpEmpSearch_ItemCommand"
DataSource='<%#DataBinder.Eval(Container,"DataItem") %>'>
<itemtemplate>
<table class="extAlternate_row1 tblRepeater" style="width: 100%;">
<tr>
<td>
<div>
Organisation Name:
<asp:Label ID="lblOrgName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "OrganisationName")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Location:
<asp:Label ID="lblLocation" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Location")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Industry Type:
<asp:Label ID="lblIndustry" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "IndustryType")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Website:
<asp:Label ID="lblWebsite" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Website")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Address:
<asp:Label ID="lblAddress" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Address")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Email Address:
<asp:Label ID="lblEmail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Contact Number:
<asp:Label ID="lblContact" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ContactNo")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div style="float: right;">
<asp:LinkButton ID="lnlViewDetail" runat="server" CommandName="View Detail" CommandArgument='<%#Eval("Id") %>'>
View Detail
</div>
</td>
</tr>
</table>
</itemtemplate>
<alternatingitemtemplate>
<table class="extAlternate_row2 tblRepeater" style="width: 100%;">
<tr>
<td>
<div>
Organisation Name:
<asp:Label ID="lblOrgName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "OrganisationName")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Location:
<asp:Label ID="lblLocation" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Location")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Industry Type:
<asp:Label ID="lblIndustry" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "IndustryType")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Website:
<asp:Label ID="lblWebsite" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Website")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Address:
<asp:Label ID="lblAddress" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Address")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Email Address:
<asp:Label ID="lblEmail" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Email")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div>
Contact Number:
<asp:Label ID="lblContact" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ContactNo")%>'>
</div>
</td>
</tr>
<tr>
<td>
<div style="float: right;">
<asp:LinkButton ID="lnlViewDetail" runat="server" CommandName="View Detail" CommandArgument='<%#Eval("Id") %>'>
View Detail
</div>
</td>
</tr>
</table>
</alternatingitemtemplate>
</itemtemplate>
</columns>
Here I am having a gridview inside which i have taken repeater control But ,Whenever i bind my gridview nothing is displayed
Here is my code
var query = (from t in context.Employer
join c in context.EmployerContactDetails on t.ID equals c.EmployerID
join s in context.SubClass on t.NICCodeNew equals s.ID
where c.AddressTypeID == (int)enmAddressType.MainBranchOffice
select new
{
Id = t.ID,
OrganisationName = pageLanguage == enmLanguage.English ? t.OrganisationName : t.OrganisationNameRegional,
LocationID = t.LocationID,
Location = pageLanguage == enmLanguage.English ? t.Location.Name : t.Location.NameRegional,
IndustryType = pageLanguage == enmLanguage.English ? s.Name : s.NameRegional,
Website = t.Website,
Address = c.Address,
Email = c.EmailAddress1 == "" ? c.EmailAddress2 : c.EmailAddress1,
ContactNo = c.Phone1 == null ? c.Phone2 : c.Phone1,
Sector = t.PrimarySectorID,
OrganisationType = t.OrganisationTypeID,
EmpTotal = t.TotalEmployees
}).Distinct();
What is the mistake i am doing ..Please Help