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
2730
UltraGrid:
posted

 

I have one grid that has two bands.

How to determine which band is being selected or band row being selected

Basically, I want to write some logic that saids

If( Band[1] Is active or any row is selected)

{"do nothing, at the moment I careless about band[1], it there for visual at the moment."}

else if (Band[0] is selected or row is selected)

{"get data"}

Parents
No Data
Reply
  • 2732
    Offline posted

    Hey,

    With the UltraGrid.Selected you can retrieve what is selected.

    Example:
    retrieve the band index of the first selected row: UltraGrid.Selected.Rows(0).Band.Index 
    retrieve  the band index of the first selected cell: UltraGrid.Selected.Cells(0).Band.Index

    If no cell, row or column is selected, I'm not sure if any band is selected and as such I don't think you'll be able to retrieve that.

    Kind regards,

    Michael

     

Children