public void DataViewManager()
{
DataView dv = null;
DataViewManager dvm = null;
var ds = new DataSet();
DataTable dt = new DataTable("myTable");
ds.Tables.Add(dt);
dv = dt.DefaultView;
// public DataViewManager DataViewManager {get;} - The DataViewManager that created this view.
// If this is the default DataView for a DataTable, the DataViewManager property returns the default DataViewManager for the DataSet.
// Otherwise, if the DataView was created without a DataViewManager, this property is a null reference (Nothing in Visual Basic).
dvm = dv.DataViewManager;
Assert.Same(ds.DefaultViewManager, dvm);
dv = new DataView(dt);
dvm = dv.DataViewManager;
Assert.Null(dvm);
dv = ds.DefaultViewManager.CreateDataView(dt);
Assert.Same(ds.DefaultViewManager, dv.DataViewManager);
}