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
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:
<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