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
CellButtonClick
posted

Hi there,

 

I have a multi band gridm and in each band I have added an unbound column which is set up as a button.  I have handled the CellButtonClick event in my code, but it never seems to fire.  I have put breakpoints on the method and have yet to see it stop there.

Also, once I have the event working, how can I figure out which band the call was made from so that I may handle it accordingly?

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    I assume that you mean the ClickCellButton event.  The only reason I can't think of why this wouldn't fire is that you're somehow unhooking the event, or that you're accidentally hooking the event to a different event handler that happens to have the same signature.  You might want to look at the property grid and see that the event has the correct event handler, or if you're hooking it up at run-time, that you're not accidentally unhooking it.

    As for how to handle the event:

    private void ultraGrid1_ClickCellButton(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
    {
        UltraGridBand band = e.Cell.Band;
        UltraGridRow row = e.Cell.Row;
       
        // Do stuff
    }

    -Matt

Children