The described behavior is expected since when the grid is grouped it rebinds and therefore the dataBound
event is triggered. This causes an infinite loop and the stack overflow exception is thrown. Have in mind that calling a method which is related with the data binding mechanism within the dataBound
handler causes an endless loop.
A possible workaround is to disable AutoBind
and group the grid within the document ready event handler:
grid = $(
For your convenience attached you will find a sample which demonstrates the above solution.