简体   繁体   English

ASPxGridView-“参数名称:索引”错误

[英]ASPxGridView - “parameter name: index” error

Does anyone know what does means "parameter name: index" error while performing callback on the aspxgridview ? 有谁知道在aspxgridview上执行回调时,什么意思是“参数名称:索引”错误? When I run the grid.PerformCallback() command, I see this error. 当我运行grid.PerformCallback()命令时,我看到此错误。

Note: my callback function 注意:我的回调函数

protected void grid_CustomCallback(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewCustomCallbackEventArgs e)
{
    grid.DataBind();
}

May be a little late for OP but what solved this for me was to set EnableSynchronization = false for the control that I was adding items in through javascript. 对于OP可能会有点晚,但是对我来说解决此问题的方法是,为我通过JavaScript在其中添加项目的控件设置EnableSynchronization = false

Clarification: 澄清:

I was adding items to a combobox through the cbFormattingOption.InsertItem(i, v); 我通过cbFormattingOption.InsertItem(i, v);将项目添加到组合框中cbFormattingOption.InsertItem(i, v); method. 方法。 Setting EnableSynchronization to false false for that combobox solved this issue. 将该组合框的EnableSynchronization设置为false false可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有复选框的ASPxGridView错误 - ASPxGridView error with checkbox ArgumentOutOfRangeException参数名称:索引 - ArgumentOutOfRangeException parameter name: Index 在 AspxGridview 中动态获取列名 - Get column name dynamically in AspxGridview 怎么得到? 更新表错误:参数名称:索引 - How get? Updating table error: Parameter name: index 枚举作为参数:获取名称和索引 - Enum as parameter: Get name and index InvalidArgument =值'3'对于'索引'无效。 参数名称:索引 - InvalidArgument=Value of'3' is not valid for 'index'. parameter name: index InvalidArgument='-1' 的值对 'index' 无效。 参数名称:索引 - InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index 获取行删除索引(devexpress ASPxGridView) - Get index on row deleting (devexpress ASPxGridView ) 错误指定的参数超出了有效值的范围。 参数名称:DataGridview Row Data Bound 中的索引 - Error Specified argument was out of the range of valid values. Parameter name: index in DataGridview Row Data Bound 错误消息“索引超出范围。 必须为非负数并且小于集合的大小。 参数名称:索引” - Error message “Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM