Sharepoint 2010 SharePoint中的Infragistics WebDataGrid-代码块上的异步请求HTTPException

Sharepoint 2010 SharePoint中的Infragistics WebDataGrid-代码块上的异步请求HTTPException,sharepoint-2010,infragistics,webdatagrid,Sharepoint 2010,Infragistics,Webdatagrid,在SharePoint网站上仅使用动态列使用Infragistics WebDataGrid时出错 错误为:[HttpException]:无法修改控件集合,因为该控件包含代码块(即) 你能帮忙吗 protected void Page_Load(object sender, EventArgs e) { List<CustomObject> customObjects = new List<CustomObject>();

在SharePoint网站上仅使用动态列使用Infragistics WebDataGrid时出错

错误为:[HttpException]:无法修改控件集合,因为该控件包含代码块(即)

你能帮忙吗

    protected void Page_Load(object sender, EventArgs e)
    {
        List<CustomObject> customObjects = new List<CustomObject>();

        CustomObject customObject = new CustomObject();

        customObject.ID = 1;
        customObject.Col1 = "Super Cool Stuff1";
        customObject.Col2 = "Super Cool Stuff2";
        customObject.Col3 = "Super Cool Stuff3";
        customObject.Col4 = "Super Cool Stuff4";

        customObjects.Add(customObject);

        customObject = new CustomObject();
        customObject.ID = 2;
        customObject.Col1 = "Super Cool 1";
        customObject.Col2 = "Super Cool 2";
        customObject.Col3 = "Super Cool 3";
        customObject.Col4 = "Super Cool 4";

        customObjects.Add(customObject);

        this.WebDataGrid1.DataSource = customObjects;
        this.WebDataGrid1.DataBind();
    }

public class CustomObject
{
    public int ID { get; set; }
    public string Col1 { get; set; }

    public string Col2 { get; set; }

    public string Col3 { get; set; }

    public string Col4 { get; set; }
}

<ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="244px" Width="1030px" DataKeyFields="ID">
    <behaviors>
        <ig:Filtering FilterType="ExcelStyleFilter">
        </ig:Filtering>
    </behaviors>

</ig:WebDataGrid>
受保护的无效页面加载(对象发送方,事件参数e)
{
List customObjects=new List();
CustomObject CustomObject=新的CustomObject();
customObject.ID=1;
customObject.Col1=“超级酷玩偶1”;
customObject.Col2=“超级酷玩偶2”;
customObject.Col3=“超级酷玩偶3”;
customObject.Col4=“超级酷玩偶4”;
customObjects.Add(customObject);
customObject=新的customObject();
customObject.ID=2;
customObject.Col1=“超级酷1”;
customObject.Col2=“超级酷2”;
customObject.Col3=“超级酷3”;
customObject.Col4=“超级酷4”;
customObjects.Add(customObject);
this.WebDataGrid1.DataSource=customObjects;
this.WebDataGrid1.DataBind();
}
公共类CustomObject
{
公共int ID{get;set;}
公共字符串Col1{get;set;}
公共字符串Col2{get;set;}
公共字符串Col3{get;set;}
公共字符串Col4{get;set;}
}

您是否在其论坛上询问了Infragistics,您发现NetAdvantage工具集的错误版本是什么?您尝试过最新的服务版本了吗?有帮助吗?