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
1834
Header Check Changed and Selective Saving
posted

I am trying to save grid data when the user checks the header checkbox (thus selecting or deselecting everything in the column), but not when the header checkbox changes state due to a user selecting a *cell* checkbox (e.g., when a checkbox in a cell is the first cell in the column to be checked, the header checkbox moves to an intermediate state).

So in the AfterHeaderCheckStateChanged event, I need to tell if it was because the user clicked the header checkbox, or if it was because the user changed a cell checkstate and that caused the header event to fire.  I think I can pull it off with some flags set in CellChange and BeforeHeaderCheckStateChanged, but that approach feels rather kludgey.  Does anyone know of a more elegant solution?

Thanks,

J