System.Web.UI.WebControls Namespace DataGrid Class
Initializes a new instance of the DataGrid class.
[ VB ]
Public Sub New ( )
[ C# ]
public DataGrid ( );
[ C++ ]
public: DataGrid ( );
[ JScript ]
public function DataGrid ( );
Use this constructor to initialize a new instance of the DataGrid class.
The following example demonstrates how to initialize a new instance of the DataGrid class.
void Page_Load ( Object src, EventArgs e ) {
DataGrid myDataGrid = new DataGrid ( );
}
Sub Page_Load ( src As Object, e As EventArgs )
Dim myDataGrid As New DataGrid ( )
End Sub |
|
C# |
VB |
DataGrid Members