DataGrid.CaptionText Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the text of the grid's window caption.
public:
property System::String ^ CaptionText { System::String ^ get(); void set(System::String ^ value); };
public string CaptionText { get; set; }
member this.CaptionText : string with get, set
Public Property CaptionText As String
Property Value
A string to be displayed as the window caption of the grid. The default is an empty string ("").
Examples
The following code example sets the caption of a System.Windows.Forms.DataGrid.
if ( dataGrid1->CaptionText == "" )
{
dataGrid1->CaptionText = "Microsoft DataGrid";
}
if(dataGrid1.CaptionText == "")
dataGrid1.CaptionText = "Microsoft DataGrid";
If DataGrid1.CaptionText = "" Then
DataGrid1.CaptionText = "Microsoft DataGrid"
End If
Applies to
See also
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.