具有子列、分组和聚合函数的RAD GridView

时间:2021-11-08 20:51:23

I have a Rad Grid View that I'm using to display some data and it may or may not contain child rows. I also implemented grouping with aggregate functions. Everything works right until I show the child grids. It throws an Index Out of Bounds Exception after expanding the child rows in this part of the code.

我有一个Rad网格视图,用于显示一些数据,它可能包含子行,也可能不包含子行。我还使用聚合函数实现了分组。在显示子网格之前,一切都正常工作。在此代码中展开子行之后,它抛出一个超出界限的索引异常。

具有子列、分组和聚合函数的RAD GridView

I also noticed that the columns are doubled when I expand one of the child rows.

我还注意到,当我展开子行之一时,列会加倍。

Pic 1. Working all right

图1所示。工作好了

具有子列、分组和聚合函数的RAD GridView

Pic 2. Doubled columns after expanding.

图2所示。翻了一倍扩大后列。

具有子列、分组和聚合函数的RAD GridView

Any ideas if gropuing with child rows is supported? I did not see any example in Telerik's web page.

是否支持使用子行进行gropuing ?我在Telerik的网页上没有看到任何例子。

1 个解决方案

#1


0  

It turned out I had an error with my code. Since the grid columns are populated dynamically through the code, I was running the grouping code in the initialization of the children grid.

结果我的代码出现了错误。由于网格列是通过代码动态填充的,所以我在子网格的初始化中运行分组代码。

#1


0  

It turned out I had an error with my code. Since the grid columns are populated dynamically through the code, I was running the grouping code in the initialization of the children grid.

结果我的代码出现了错误。由于网格列是通过代码动态填充的,所以我在子网格的初始化中运行分组代码。