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!

TableSetting.Table

Gets or sets the DataTable to which the settings apply.

[Visual Basic]
Public Property Table As DataTable
[C#]
public DataTable Table {get; set;}
[C++]
public: __property DataTable* get_Table();
public: __property void set_Table(DataTable*);
[JScript]
public function get Table() : DataTable;
public function set Table(DataTable);

Property Value

A DataTable.

Example [Visual Basic]

The following example uses the DataTable returned by the Table property and prints all values in the table.

[Visual Basic]

Private Sub PrintDataViewTableValues(dv As DataView)
   Dim t As DataTable
   Dim c As DataColumn
   Dim r As DataRow
   t = dv.Table
   For Each r In t.Rows
      For Each c In t.Columns
         Console.WriteLine(c.ColumnName, r(c))
      Next c
   Next r
End Sub

See Also

TableSetting Class | TableSetting Members | System.Data Namespace | Expression | RowStateFilter | Sort | TableSetting