Hello,
I have a two band UltraGrid in virtual mode. The data in my data source constantly change, including child record collections. It seems that the InitializeRowsCollection is only fired once for each parent row. Is there a way to force InitializeRowsCollection to fire again?
Thanks,Shaolin
Hi John,
Thanks for your response!
As I stated in my original question, the data in my own data source constantly change, including child record collections. The data in my own data source are added, updated and removed by work threads. The number of rows in any child row collection is changed all the time, so event InitializeRowsCollection has to be fired. When there is any data change in my data source, I will call:
ultraDataSource.Rows.SetCount(newCount);ultraGrid.Rows.Refresh(RefreshRow.FireInitializeRow);
The InitializeRow event is forced to fire this way. I do not see event InitializeRowsCollection is fired.
Hello Shaolin,
There is no way to force InitializeRowsCollection to fire manually. If you describe what you want to accomplish by firing InitializeRowsCollection again, I can look into a strategy to accomplish this instead of InitializeRowsCollection.
Please let me know if I can further assist you.