asp.net.ph

DataGridColumnCollection Constructor

System.Web.UI.WebControls Namespace   DataGridColumnCollection Class


Initializes a new instance of the DataGridColumnCollection class.

[ VB ]
Public Sub New ( _
   ByVal owner As DataGrid, _
   ByVal columns As ArrayList _
)

[ C# ]
public DataGridColumnCollection (
   DataGrid owner,
   ArrayList columns
);

[ C++ ]
public: DataGridColumnCollection (
   DataGrid* owner,
   ArrayList* columns
);

[ JScript ]
public function DataGridColumnCollection (
   owner : DataGrid,
   columns : ArrayList
);

Parameters

owner
The DataGrid control that corresponds with this collection.
columns
An ArrayList object that stores the collection of columns.

Remarks

Use this constructor to initialize a new instance of the DataGridColumnCollection class.

Example

The following example demonstrates how to initialize a new instance of the DataGridColumnCollection class.

void Page_Init ( Object src, EventArgs e ) {
   ArrayList myList = new ArrayList ( );
   DataGridColumnCollection myColumns = new DataGridColumnCollection ( myGrid, myList );
}
  C# VB

See Also

DataGridColumnCollection Members   DataGrid   ArrayList Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph