System.Web.UI.WebControls Namespace DataGridItemEventArgs Class
Initializes a new instance of the DataGridItemEventArgs class.
[ VB ]
Public Sub New ( _
ByVal item As DataGridItem _
)
[ C# ]
public DataGridItemEventArgs (
DataGridItem item
);
[ C++ ]
public: DataGridItemEventArgs (
DataGridItem* item
);
[ JScript ]
public function DataGridItemEventArgs (
item : DataGridItem
);
- item
- The DataGridItem associated with the event. The Item property is set to this value.
The following table shows initial property values for an instance of DataGridItemEventArgs.
Property |
Initial Value |
Item |
The value of the item parameter. |
The following example demonstrates how to initialize a new instance of the DataGridItemEventArgs class.
void Item_Created ( Object src, DataGridItemEventArgs e ) {
DataGridItemEventArgs item_arg = new DataGridItemEventArgs ( e.Item );
}
Sub Item_Created ( src As Object, e As DataGridItemEventArgs )
Dim item_arg As New DataGridItemEventArgs ( e.Item )
End Sub |
|
C# |
VB |
DataGridItemEventArgs Members