Not sure I understand correctly, especially the meaning of this line: "but I don't want to generate 50 CheckedChanged events triggering the same function".
It appears that you understand that you can handle all 50 events using the same EventHandler. I don't see what problem you would have with that way of doing it. Personally, though, I'd generate my filter string just before the act of filtering itself. On Feb 14, 2:55 pm, Nacho108 <[email protected]> wrote: > Hi everybody! > > I'm making an application which creates a filter which I apply later > to a dataview based on the selection of the user. > The selection is made through checkboxes, 50 of them to be exact. For > that I create a function which generates the filter string based on > the checkboxes. The thing is that I would like to generate the new > string in the same moment the user check or uncheck a control, but I > don't want to generate 50 CheckedChanged events triggering the same > function. > Also I don't see a good solution to use a timer that every a certain > time re-generates the filter string. > > Is there a way to "group" all CheckedChanged events in a way I can > trigger this function only one time? > > Thanks!
