Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to generate events in c#

Posted on 2013-01-30
5
392 Views
Last Modified: 2013-01-31
This is definitely a beginner question, but I was hoping someone could explain this to me since i'm used to working with VB.  In VB viewing the different events for a page or a user control is easy to do.  You can select the control in the top left rectangle of the IDE and see a list of its associated events in the top right rectangle of the IDE.

In c# you can't do that.  You also can't see a list of events associated with it in the properties window as far as I can tell.  If you double click the control in designer mode you will generate the method signature for its default event but nothing else.

I am trying to make the RowCreated event for a grid view in C#.  Is there a way to generate a method signature for this event?
0
Comment
Question by:kpbarem
5 Comments
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 333 total points
ID: 38835703
0
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 333 total points
ID: 38835710
Add the event handler function in your class and also u need to add the event property inside the <asp:gridview> in your aspx page
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 38835786
Select the GridView.  Now hit the "Lightning Bolt" icon in the Properties Pane to see a list of events for it.  Scroll down to the "RowCreated" entry and double click to the right.
0
 
LVL 1

Accepted Solution

by:
jinsonaf earned 167 total points
ID: 38838744
Hi

Check this link. This says about  the rowcreated event of gridview

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcreated.aspx
0
 

Author Closing Comment

by:kpbarem
ID: 38841656
Thanks everyone for your help.  Unfortunatley the lightning bolt method is one that I attempted before and I couldn't seem to get it to work.  But thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question