Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 10th, 2006, 08:02 AM
Authorized User
 
Join Date: Sep 2006
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to fire events from datagrid cell?

Hi Friends ,

          I have one datagrid on my page , in which two columns are added dynamically , and also one button is also loaded dynamically ,to one of the cell of datagrid , now i want to fire
some events using that button control.

          Please guide me , regarding this problem .

Thanks in advance ,
Param


 
Old November 10th, 2006, 09:38 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

You can simply add an event handler to it while you create the buttons, e.g. as below

btn.Click += new System.EventHandler(this.ButtonEventHandler);

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old November 15th, 2006, 07:33 AM
Authorized User
 
Join Date: Aug 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

write the method which you want to fire in codebeind file
        this must be public method
        and in html part
in edititemtemplate
        findout the textbox for which you want fire this method
        set the event name = method






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fire events of a Active X dll in ASP.NET Brijendra Pandey ASP.NET 3.5 Professionals 1 October 4th, 2008 05:44 PM
Fire Events from Nested GridView adamh409 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 2 November 5th, 2007 01:18 PM
ShowPopup doen't fire events on menu bar sumit_kalra Access VBA 1 March 3rd, 2005 11:13 AM
DataGrid cell events?? Help Kathryn ASP.NET 1.0 and 1.1 Basics 4 January 31st, 2005 10:12 AM
ShowPopup doesn't fire events on menu bar sumit_kalra Excel VBA 0 July 12th, 2003 06:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.