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
9364
Changing the MaxBandDepth after a Grid is bound
posted

I have a Grid which is bound to a DataTable. Grid is intentionally bound to this datasource such (using self-referencing relationship) that it rows in this table are shown in bands on the Grid. Rows are dynamically added to this DataTable which may show in a new band. So we do not know the number of bands needed ahead of time. If we leave the MaxBandDepth as default, it takes very long for the databinding to happen. So we have set it to an arbitrary small number.  

My plan was to change to the MaxBandDepth only if I have a need to show a new band i.e. when new DataRows get added to the DataTable. I tried doing in some code that is comes after InitializeLayout. But the Grid does not seem to recognize change in MaxBandDepth if done after InitializeLayout.  What are my options?

- ResetDisplayLayout? and then rerun InitializeLayout? 

- Any other way to force set MaxBandDepth?

Parents Reply Children
No Data