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!

DataGrid.ResetCaptionFont

Resets the CaptionFont property to its default value.

[Visual Basic]
Public Sub ResetCaptionFont()
[C#]
public void ResetCaptionFont();
[C++]
public: void ResetCaptionFont();
[JScript]
public function ResetCaptionFont();

Remarks

You typically use this method only if you are either creating a designer for the DataGrid, or creating your own control incorporating the DataGrid.

Example [Visual Basic]

The following example resets the font of the grid's caption.

[Visual Basic]

Private Sub ResetGridCaptionFont(ByVal myGrid As DataGrid)
   myGrid.ResetGridCaptionFont
End Sub

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionFont | ShouldPersistCaptionFont