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