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 conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.