score:-1

Try putting your CheckBoxList binding inside the ItemDataBound event of the repeater.

See:

Repeater.ItemDataBound Event

Using OnItemDataBound with Repeater in ASP.NET and C#

score:0

add OnItemDataBound event to Repeater :

<asp:Repeater ID="Repeater1" OnItemDataBound="Repeater1_ItemDataBound" runat="server">

then in code behind do something like this :

 protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
       var parameters = (from resx in clParameterDetailDTO
                              select resx.ParameterType).Distinct();
        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
        {
            CheckBoxList chkParList = (e.Item.FindControl("chkParList") as CheckBoxList);
            chkParList.DataSource = parameters.ToList();
            chkParList.DataTextField = "ParameterName";
            chkParList.DataValueField = "ParameterID";
            chkParList.DataBind();
        }
    }

Related Articles