System.Windows.Forms.DataGrid.Dispose Method

Disposes of the resources (other than memory) used by the System.Windows.Forms.DataGrid.

Syntax

protected override void Dispose (bool disposing)

Parameters

disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks

Call DataGrid.Dispose(bool) when you are finished using the System.Windows.Forms.DataGrid. The DataGrid.Dispose(bool) method leaves the System.Windows.Forms.DataGrid in an unusable state. After calling DataGrid.Dispose(bool), you must release all references to the System.Windows.Forms.DataGrid so the memory it was occupying can be reclaimed by garbage collection.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0