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
245
Problem binding and rebinding to a datasource at runtime.
posted

Hi

i'm having a strange issue with my wingrid binding.

 I have my wingrid bound to a heirarchical dataset which views fine.

i have a button that adds a summary table to the dataset (and child relation to the underlying table in the dataset).  the wingrid is then bound to the summary table instead and this also works fine (can drill down into the data etc.)

clicking the button binds the wingrid to the original datatable and deletes the summary table (and relation) from the dataset.

trying to get the summary table to reshow by clicking the button again (and executing the same code) causes a problem in that the wingrid is being bound to the summary table but it is not seeing the child relations.  I can see that they are present in the dataset (in the immediate window)..but for soem reason its not being boudn properly

 can anyone offer any advice as to what i am doing wrong...i've tried everything!

 regards