C# School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a C# Expert!

Join 300,422 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,522 people online right now. Registration is fast and FREE... Join Now!




How to call gridview rowheadermouseclick event in button click event

 

How to call gridview rowheadermouseclick event in button click event

avani@swayamsoftware.com

1 Jul, 2009 - 05:14 AM
Post #1

D.I.C Head
**

Joined: 2 Jun, 2009
Posts: 51



Thanked: 1 times
My Contributions
hi there,

I want to call a rowheadermouseclick event in button click event.

I wrote one statement like this
CODE

ListGrid_RowHeaderMouseClick(sender,DataGridViewCellMouseEventArgs e);



But When i m passing parameters it give me error.

So how could i call rowheaderclick event onbutton click

User is offlineProfile CardPM
+Quote Post


modi123_1

RE: How To Call Gridview Rowheadermouseclick Event In Button Click Event

1 Jul, 2009 - 10:43 AM
Post #2

Suiter #2
Group Icon

Joined: 12 Jun, 2008
Posts: 1,760



Thanked: 72 times
Dream Kudos: 150
My Contributions
You would need to create the 'e' variable outside of the event, fill it, and use only that to raise up the event.

CODE

DataGridViewCellMouseEventArgs e = nothing;

ListGrid_RowHeaderMouseClick(sender, e);

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 12:12AM

Live C# Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month