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
685
Change to datasource structure not reflected into the grid, how to ?
posted

Hello,

I've attached a sample solution in which i have a ultragrid linked to a dataset.

Dataset has 3 tables, "One", "Two" and "Three". "Two" and "Three" being child of "One" and sibling of each other.

On the click of the button "Replace Band Three", I remove table "Three" from the dataset and add another table "Three" with a different structure.

How can this change be reflected into the grid, can I reload the display layout of a band ?

TIA,

Guillaume.

WindowsFormsApplication7.zip
Parents
No Data
Reply
  • 3565
    posted

    If you consider the object model the grid is sitting there and hasn't realized that its underlying data source has been modified. I looked around and didn't see any methods that suggested something that would refresh a specific band or anything of that nature. I would bet that if you were to set the grid's data source equal to your data source object again in your button click event that the grid  would reorganize itself to match the new table structure.

Children