Solved

How to generate events in c#

Posted on 2013-01-30
5
366 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
Comment Utility
0
 
LVL 42

Assisted Solution

by:sedgwick
sedgwick earned 333 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now