NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

GridColumnsCollection.All

Gets or sets all of the DataGridColumn objects in the collection.

[Visual Basic]
Overridable Public Property All As DataGridColumn ()
[C#]
public DataGridColumn[] All {virtual get; virtual set;}
[C++]
public: __property virtual DataGridColumn* get_All();
public: __property virtual void set_All(DataGridColumn*[]);
[JScript]
public function get All() : DataGridColumn[];
public function set All(DataGridColumn[]);

Property Value

An array containing references to all of the DataGridColumn objects in the collection.

Example [Visual Basic]

The following example uses the All method to fill an array with DataGridColumn objects accessed through the GridColumns property. The code then iterates through the array and prints each object's type.

[Visual Basic]

Private Sub GetDataGridColumnArray()
   Dim colArray()As DataGridColumn
   Set colArray = DataGrid1.GridColumns.All
   Dim i As Integer
   For i = 0 to Ubound(colArray)
      Debug.Print colArray(i).ToString
   Next i
End Sub

See Also

GridColumnsCollection Class | GridColumnsCollection Members | System.WinForms Namespace | Add | System.WinForms.GridColumnsCollection.Count | DataGridColumn | Remove