Indicates whether the CaptionForeColor property should be persisted.
[Visual Basic] Overridable Public Function ShouldPersistCaptionForeColor() As _ Boolean [C#] public virtual bool ShouldPersistCaptionForeColor(); [C++] public: virtual bool ShouldPersistCaptionForeColor(); [JScript] public function ShouldPersistCaptionForeColor() : Boolean;
true if the property value has been changed from its default; otherwise, false.
You typically use this method only if you are either creating a designer for the DataGrid, or creating your own control incorporating the DataGrid.
DataGrid Class | DataGrid Members | System.WinForms Namespace