Back to Devexpress

RowProperties.SearchTags Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-rows-dot-rowproperties-2659e0da.md

latest3.2 KB
Original Source

RowProperties.SearchTags Property

Gets or sets a comma-separated list of tags by which the find panel can find this row.

Namespace : DevExpress.XtraVerticalGrid.Rows

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue("")]
[XtraSerializableProperty]
public virtual string SearchTags { get; set; }
vb
<XtraSerializableProperty>
<DefaultValue("")>
Public Overridable Property SearchTags As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies a comma-separated list of tags by which the find panel can find this row.

|

Remarks

The find panel searches for a row by its caption, tooltip, field name, and caption in the customization form. The SearchTags property allows you to provide custom tags by which the find panel can find this row.

The code below shows how to find DirectX-related properties with the ‘GDI‘ search query.

csharp
using DevExpress.XtraVerticalGrid.Rows;

propertyGridControl1.RowsIterator.DoOperation(new MyOperation());

public class MyOperation : RowOperation {
    public override void Execute(BaseRow row) {
        if (row.Properties.Caption.ToLower().Contains("directx"))
                row.Properties.SearchTags = "gdi";
    }
}
vb
Imports DevExpress.XtraVerticalGrid.Rows

propertyGridControl1.RowsIterator.DoOperation(New MyOperation())

Public Overrides Sub Execute(ByVal row As BaseRow)
    If row.Properties.Caption.ToLower().Contains("directx") Then
            row.Properties.SearchTags = "gdi"
    End If
End Sub

See Also

Caption

ToolTip

FieldName

CustomizationCaption

RowProperties Class

RowProperties Members

DevExpress.XtraVerticalGrid.Rows Namespace