On Jun 9, 2:09 pm, Eric <E...@discussions.microsoft.com> wrote:
> Hi,
>
> I have a windows applicaiton with a datagridview on a form.
> In my code I can call the ClearSelection method of the datagridview to
> remove the selection.
>
> How can I create an event that is fired whenever this method is done so I
> can do additional actions?
>
> rg,
> Eric
Hi Eric,
Try to handle built-in SelectionChanged event of DatagridView class.
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionchanged(v=VS.100).aspx
Untested, it may fire when you call ClearSelection.It's worth to try.
HTH,
Onur Güzel
|