Solved

How to generate events in c#

Posted on 2013-01-30
5
396 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
[X]
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
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 86

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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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