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
143
Get rid of dynamicly added columns via propertydescriptors
posted

Hi,

I have an Master-detail application where domainobjects are databinded with two ultrawingrids via a System.Windows.Forms.BindingSource.
The Detailgrid columns are decided at runtime and added dynamicly by overriding the GetItemProperties method in the bindingsource.

The problem is when MasterItems contains DetailItems with the same columnnames. It seems like the grid or bindingsource remember the previous dynamicly added columns and try to merge them with the new ones.

I tried to both use bindingsource.ResetBindings(True) and bind to a new bindingsource without any result so the problem seems to be with the grid.

I think i tried most reset methods I found in the grid with no result and it is not possible to remove my dynamicly added columns from the grid because it says they are databounded.

Any Ideas? 

TIA
/S

Parents
No Data
Reply
  • 48586
    posted

    Hi,

     

    I just wanted to know if you were able to solve your issue based on our suggestions or you still need help?

    Just let me know.

    Thank you.

     

Children
No Data