Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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 April 7th, 2008, 04:59 AM
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Explain the event fire in Gridview?

hi can anyone explain the event fire in

Gridview....?

Explain the often used event....

Regards,
Venkatesan.M
 
Old April 7th, 2008, 12:12 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

There are many events on the GridView, and depending on what you are doing you may or may not use some often.

Do you have a specific question about a particular event? Otherwise, you might want to check the MSDN documentation for general descriptions of what the events are.

-Peter
peterlanoie.blog
 
Old April 8th, 2008, 01:07 AM
Registered User
 
Join Date: Apr 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

h ai we will use most event often

lik

rowcommand
item created
itembound
row delete

like

when it occurs...

can u explain.......

Regards,
Venkatesan.M
 
Old April 8th, 2008, 08:41 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

RowCreated - occurs when each row (including header, footer, pager) is created. This happens when the control is data bound as well as when it is reconstructed from viewstate on postback.

RowDataBound - Occurs, as the name suggests, when each item is data bound. Again, this happens for data rows as well as header, footer and pager.

RowDeleted - Occurs on a postback triggered by a control meeting the requirements of a delete command for a data item row. This is usually a button with the CommandName of "Delete".

RowCommand - Occurs on a postback triggered by a button in a gridview.

As I suggested before, take a look at the MSDN docs for the gridview events:
http://msdn2.microsoft.com/en-us/lib...ew_events.aspx

The best way to understand any control events is to create a test page with the control, set up event handlers for all the events you want to investigate and either run in the debugger or have each handler generate some output so you can see how it works.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Cannot get Edit Template event to fire zoltac007 ASP.NET 2.0 Professional 4 February 13th, 2007 03:29 PM
SelectedIndexChanged Event doesn't fire ddudley3 ASP.NET 2.0 Professional 7 February 6th, 2006 10:47 AM
Can't fire button event more than 1 time goatstudio ASP.NET 2.0 Basics 4 September 22nd, 2004 07:45 AM





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