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
405
Expand/Collapse bands
posted

Hi there,

I have a multi-banded wingrid in which the user would like to be able to expand and collapse the bands by clicking anywhere on a row, not just on the +/- indicator.  Is this possible, and if so how?

Thanks, Shane

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Shane,

    I assume, then, that the data in the rows is not editable? If clicking on the row expands or collapses the row, then that row would never be able to enter edit mode.

    How you implement this will depend on a lot of other factors, such as the CellClickAction property, what version of the grid you are using, whether you need to allow the user to Select a row or multiple rows.

    If you are using the latest version of the grid, then the place to start is probably the ClickCell event.


            private void ultraGrid1_ClickCell(object sender, Infragistics.Win.UltraWinGrid.ClickCellEventArgs e)
            {
                e.Cell.Row.Expanded = !e.Cell.Row.Expanded;
            }

     

     

Children
No Data