This documentation is archived and is not being maintained.

DataView.Open Method

Opens a DataView.

[Visual Basic]
Protected Sub Open()
protected void Open();
protected: void Open();
protected function Open();


The method allows you to manually open the DataView in derived classes. Use the corresponding Close method to close the DataView.

This property is designed for internal use only.


[Visual Basic] The following example checks the IsOpen property before invoking the Open method.

[Visual Basic] 
'MyDataView is a class derived from DataView
Private Sub OpenDataView(ByRef dv As MyDataView)
   If dv.IsOpen Then
      Exit Sub
   End If
End Sub

[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataView Class | DataView Members | System.Data Namespace