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
2732
Hierarchical UltraGrid with Dynamic DataSource
posted

Hello,

We are trying to set up a hierarchical ultragrid with a dynamic datasource and the result is extremely slow to move between rows, either using the up/down arrow or the mouse. Basically the ActivateRow event is slow.

We set up the dynamic datasource using a ITypedList and a custom PropertyDescriptor.

The problem seems to be that the grid is constantly asking the "GetValue" of the objects, every activaterow seems to call the getvalue on all the visible cells, even scrolling left/right/up/down causes the getvalue on a lot of properties.

Maybe  we are doing something wrong or something that is not supported.

A very simple example in attachment. Our real example has a lot more properties and has more complex code in the GetValue so the delay is a lot higher, however, this example still shows a noticeable delay.

Any help would be appreciated !

Kind regards,

Michael

PS: We are using version 11.1.20111.2042

DynamicDataSourceTest.zip
Parents
  • 48586
    posted

    Hello,

     

    UltraGrid calls GetValue in order to ensure that the displayed value is up-to-date when customer needs it. In your sample I have replaced UltraGrid with DataGridView (ordinary MS grid control) and the sample works on the same way. Please  see the attached sample. The best thing what you could do is setting LoadStyle to  LoadOnDemand.

     

    Please let me know if you have any further questions.

    DynamicDataSourceTestMod.zip
Reply Children