Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridDragHintTextTemplateContext.GetDisplayText(IGridDataColumn) Method

Returns the display text of a cell in the currently dragged row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public string GetDisplayText(
    IGridDataColumn column
)

#Parameters

Name Type Description
column IGridDataColumn

The data column to which the cell belongs.

#Returns

Type Description
String

The display text.

#Remarks

The following example obtains the display text of the Status column’s cell:

Razor
<DxGrid Data="DataSource"
        AllowDragRows="true"
        ItemsDropped="Grid_ItemsDropped">
    <Columns>
        <DxGridDataColumn FieldName="Name" Caption="Subject" MinWidth="220" />
        <DxGridDataColumn @ref="Grid_StatusDataColumn" FieldName="Status" Caption="Status" Width="140px" MinWidth="140" />
        <DxGridDataColumn FieldName="CreatedDate" Caption="Created" Width="120px" MinWidth="120" />
        <DxGridDataColumn FieldName="FixedDate" Caption="Fixed" Width="120px" MinWidth="120" />
    </Columns>
    <DragHintTextTemplate>
        @{
            <span>
                @context.GetDisplayText(Grid_StatusDataColumn)
            </span>
        }
    </DragHintTextTemplate>
</DxGrid>

@code {
    DxGridDataColumn Grid_StatusDataColumn { get; set; }
    // ...
}
See Also