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
425
How to check child band row is selected?
posted

Hi all

I need to check the type of the object (row) user was selected from the grid. I tried use datasource.current, but it return the parent object (which included the child object). I need to identify the type of selected object (row) because right click parent band and child band should show different menu strip.

Any idea?

BR

Bryan

Parents
No Data
Reply
  • 69832
    Offline posted

    The control exposes a Selected property, which in turn exposes collection properties like Rows, Cells, and Columns. Depending on which is selected, one of those properties will contain one or more members; in the case where one row is selected, you can get a reference to that row using UltraGrid.Selected.Rows[0].

    UltraGrid also exposes an ActiveRow property, which basically returns the row with the focus (shows a dotted rectangle around it).

Children
No Data