Gets or sets the text of the grid's caption.
[Visual Basic] Public Property CaptionText As String [C#] public string CaptionText {get; set;} [C++] public: __property String* get_CaptionText(); public: __property void set_CaptionText(String*); [JScript] public function get CaptionText() : String; public function set CaptionText(String);
A string to be displayed as the grid's caption.
The following example sets the caption of a DataGrid.
[Visual Basic]
If DataGrid1.CaptionText = "" Then DataGrid1.CaptionText = "Microsoft DataGrid" End If
DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionVisible | CaptionForeColor | CaptionFont | CaptionBackColor | ShouldPersistCaptionFont