Skip to main content
All docs
V25.1
  • RowProperties.GetTextCaption() Method

    Gets the row caption display text.

    Namespace: DevExpress.XtraVerticalGrid.Rows

    Assembly: DevExpress.XtraVerticalGrid.v25.1.dll

    NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

    Declaration

    public string GetTextCaption()

    Returns

    Type Description
    String

    The row caption display text.

    Remarks

    You can specify a row caption as follows:

    The Caption property has priority over Data Annotation Attributes. If neither this property nor a Data Annotation Attribute is specified, the row caption is generated based on the RowProperties.FieldName property value.

    Use the GetTextCaption method to obtain the displayed row caption:

    using DevExpress.XtraVerticalGrid;
    // ...
    if (vGridControl1.FocusedRow.Properties.GetTextCaption() == "ID")
      return;
    
    See Also