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
145
HowTo prevent loss of DisplayLayout whent set DataSource = null
posted
We use our own derivation of UltraGrid with a design time layout. After setting the DataSource we watch OnInitializeLayout to prevent overwriting of the design time layout. But when DataSource is set to null, we don't get into this method and therefore we have no possibility to prevent the UltraGrid from clearing the complete layout. We can configure the default band 0 nontheless (add our design time columns) but unfortunately theres no ability to add new bands at runtime. So we can't get back a DisplayLayout with more than one band. Can we set DataSource=null without whiping the complete DisplayLayout similar to SetDataBinding (DataSource, DataMember, HideNewColumns)?