Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Add Content...
Click to Rate and Give Feedback
Give feedback on this content
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.Web.UI.WebControls Namespace
Please Wait
DataGrid Class
Please Wait
DataGrid Events
Please Wait
Collapse All
Expand All
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2010/.NET Framework 4.0
.NET Framework Class Library
DataGrid Events
The
DataGrid
type exposes the following members.
Events
Name
Description
CancelCommand
Occurs when the
Cancel
button is clicked for an item in the
DataGrid
control.
DataBinding
Occurs when the server control binds to a data source.
(Inherited from
Control
.)
DeleteCommand
Occurs when the Delete button is clicked for an item in the
DataGrid
control.
Disposed
Occurs 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
.)
EditCommand
Occurs when the Edit button is clicked for an item in the
DataGrid
control.
Init
Occurs when the server control is initialized, which is the first step in its lifecycle.
(Inherited from
Control
.)
ItemCommand
Occurs when any button is clicked in the
DataGrid
control.
ItemCreated
Occurs on the server when an item in the
DataGrid
control is created.
ItemDataBound
Occurs after an item is data bound to the
DataGrid
control.
Load
Occurs when the server control is loaded into the
Page
object.
(Inherited from
Control
.)
PageIndexChanged
Occurs when one of the page selection elements is clicked.
PreRender
Occurs after the
Control
object is loaded but prior to rendering.
(Inherited from
Control
.)
SelectedIndexChanged
Occurs when a different item is selected in a data listing control between posts to the server.
(Inherited from
BaseDataList
.)
SortCommand
Occurs when a column is sorted.
Unload
Occurs when the server control is unloaded from memory.
(Inherited from
Control
.)
UpdateCommand
Occurs when the Update button is clicked for an item in the
DataGrid
control.
Top
See Also
Reference
DataGrid Class
System.Web.UI.WebControls Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement
|
Site Feedback