Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
DataGrid Class
DataGrid Events
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DataGrid Events

The DataGrid type exposes the following members.

  NameDescription
Public eventCancelCommandOccurs when the Cancel button is clicked for an item in the DataGrid control.
Public eventDataBindingOccurs when the server control binds to a data source. (Inherited from Control.)
Public eventDeleteCommandOccurs when the Delete button is clicked for an item in the DataGrid control.
Public eventDisposedOccurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested. (Inherited from Control.)
Public eventEditCommandOccurs when the Edit button is clicked for an item in the DataGrid control.
Public eventInitOccurs when the server control is initialized, which is the first step in its lifecycle. (Inherited from Control.)
Public eventItemCommandOccurs when any button is clicked in the DataGrid control.
Public eventItemCreatedOccurs on the server when an item in the DataGrid control is created.
Public eventItemDataBoundOccurs after an item is data bound to the DataGrid control.
Public eventLoadOccurs when the server control is loaded into the Page object. (Inherited from Control.)
Public eventPageIndexChangedOccurs when one of the page selection elements is clicked.
Public eventPreRenderOccurs after the Control object is loaded but prior to rendering. (Inherited from Control.)
Public eventSelectedIndexChangedOccurs when a different item is selected in a data listing control between posts to the server. (Inherited from BaseDataList.)
Public eventSortCommandOccurs when a column is sorted.
Public eventUnloadOccurs when the server control is unloaded from memory. (Inherited from Control.)
Public eventUpdateCommandOccurs when the Update button is clicked for an item in the DataGrid control.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker