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
225
Get selected child rows
posted

Hi,

I am using the WHDG to display hierarchical machine related data. I have the requirement to let the user select any two rows and click a compare button, so that the two rows can be compared and results displayed.

When two parent rows are selected, I can retrieve the rows using

WebHierarchicalDataGrid1.GridView.Behaviors.Selection.SelectedRows

But this returns null when two child rows are selected. Could yoy please help me retrieve the selected child rows?

Help will be massively appreciated as I have been breaking my head over this for a while now!

Parents
  • 33839
    Suggested Answer
    posted

    Hi sasha143,

    Each row island in the WHDG has its own set of behaviors copied from the Band.  The selected rows are stored per grid.  In order to get the total selected rows, you would have to write a recursive function to look through all row islands and return the rows.

    regards,
    David Young 

Reply Children