views:

1268

answers:

1

Hi,

I need to represent hierarchical data on the Winforms UltraGrid control. The data is contained on a BindingList object, which is assigned to BindingSource control. The objects contained in the collection have a "Children" property, which is another BindingList containing these objects. As our data volume is high, I'm only populating the grid with the first level items. So far so good. Then I want to get the children items for a row every time the users click on it. How can I do it? I have tried to do it on the MouseUp event, but it doesn't look good. Besides, the children objects should be retrieved and shown at the same time and at the moment I have to click several times to make them show up.

Thanks a lot.

Regards.

A: 

I don't know what version of UltraGrid you're using, but try the BeforeCellActivate or BeforeRowActivate events.

Michael Meadows
I have 7.3, will have a look at those events. Thanks.