|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
create eventhandlerHi,
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 There is no event you have to trust that it is done, like there is no event
which fires when you have done this. dim a = 1+1 Be aware that this one above like yours go so fast, that you won't see it. The painting on screen can take some more time. Show quoteHide quote "Eric" <E***@discussions.microsoft.com> wrote in message news:CAFFCADA-AEA4-4572-A5F3-5A1AD8EB9799@microsoft.com... > 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 > > > > On Jun 9, 2:09 pm, Eric <E***@discussions.microsoft.com> wrote:
> Hi, Hi Eric,> > 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 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
Excel Chart as Image (no file)
INotifyPropertyChanged issue Icon Chalange See Hot Sexy Star KAJOL Nude Bathing Videos In All Angles. A little worried. Help Calling A Function from a 32-bit non-.NET DLL .Net Developer - Little Rock, AR (Citizens may only apply) toolstrip - mouse event for disabled items? TreeNode - find the keys of the node. Image index. |
|||||||||||||||||||||||