Question

I'm working with Windows forms. I want an event to fire when the user makes a selection of cells (or one cell) in the datagridview. The SelectionChanged Event is firing as soon as I select one cell. Is there any way to have it wait for the user to be done selecting?

I have tried the CellMouseUp event, but I don't like its behaviour because if MouseUp happens outside the grid it doesn't fire.

Was it helpful?

Solution

As they select each cell a new selection change should be fired. so you are looking at "remembering" the selected cells each time the eventhandler gets triggered and then doing your processing based on that. How much of a pain this going to be depends on what processing you are doing with the selection. Could be a good deal.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top