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.CaptionText

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);

Property Value

A string to be displayed as the grid's caption.

Example [Visual Basic]

The following example sets the caption of a DataGrid.

[Visual Basic]

If DataGrid1.CaptionText = "" Then
   DataGrid1.CaptionText = "Microsoft DataGrid"
End If

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionVisible | CaptionForeColor | CaptionFont | CaptionBackColor | ShouldPersistCaptionFont