PC Review


Reply
Thread Tools Rate Thread

create eventhandler

 
 
Eric
Guest
Posts: n/a
 
      9th Jun 2010
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



 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      9th Jun 2010
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.


"Eric" <(E-Mail Removed)> wrote in message
news:CAFFCADA-AEA4-4572-A5F3-(E-Mail Removed)...
> 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
>
>
>
>

 
Reply With Quote
 
Onur Güzel
Guest
Posts: n/a
 
      9th Jun 2010
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie: Is it possible to create an EventHandler for DataSet.HasChanges()? nvx Microsoft C# .NET 7 9th Aug 2006 02:09 PM
Create EventHandler Steve Lloyd Microsoft C# .NET 3 2nd Jun 2005 04:48 PM
Re: Need to create EventHandler for control created at runtime Cor Ligthert Microsoft Dot NET 0 25th Aug 2004 09:56 AM
Re: Need to create EventHandler for control created at runtime Jon Skeet [C# MVP] Microsoft Dot NET 0 25th Aug 2004 08:02 AM
How to create an EventHandler Collection? AndreB Microsoft Dot NET Framework Forms 1 11th Mar 2004 03:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:14 PM.