DataGridColumnCollection(DataGrid, ArrayList) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DataGridColumnCollection class.
public:
DataGridColumnCollection(System::Web::UI::WebControls::DataGrid ^ owner, System::Collections::ArrayList ^ columns);
public DataGridColumnCollection (System.Web.UI.WebControls.DataGrid owner, System.Collections.ArrayList columns);
new System.Web.UI.WebControls.DataGridColumnCollection : System.Web.UI.WebControls.DataGrid * System.Collections.ArrayList -> System.Web.UI.WebControls.DataGridColumnCollection
Public Sub New (owner As DataGrid, columns As ArrayList)
Parameters
Examples
The following code example demonstrates how to create and initialize a new instance of the DataGridColumnCollection class.
void Page_Init(Object sender, EventArgs e)
{
ArrayList myList = new ArrayList();
DataGridColumnCollection myColumnCollection = new DataGridColumnCollection(ItemsGrid, myList);
}
Sub Page_Init(sender As Object, e As EventArgs)
Dim myList As New ArrayList()
Dim myColumnCollection As New DataGridColumnCollection(ItemsGrid, myList)
End Sub
Remarks
Use this constructor to create and initialize a new instance of the DataGridColumnCollection class.
Applies to
See also
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.