Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
UltraGrid event for data initialization?
posted

Hello,

I have a a windows form app where I am using a UltraGrid control.  This grid control has it's datasource set to a BindingList<MyCustomObject>.  The datasource is initialized to a null BindingList and I add and remove items from the list at runtime.

Because MyCustomObject has some nested properties I need to access and I want to flatten them in the grid I have some unbound columns that I set up in the InitializeGrid event and then populate in the InitializeRow event. 

My app will dump 2k items into the binding list at once and the insert in the the list is fast.   For each row added the InitializeRow event is called on the grid properly but, it is slow.  My population of the bindingList takes a second or 2 and then the InitializeRow events continue to fire for another 10-15 seconds. 

I would like to display a "please wait" dialog during the time that the grid is initializing all the rows.  Is there some event I can tie into to do this and build a please wait that wraps all  initialize rows?