How to bind to current row data in a column display template

The devexpress table below shows how to bind the current row data in a column template and use the converter object.

<dxg:GridColumn Header="Field1" FieldName="Field1"> <dxg:GridColumn.DisplayTemplate> <ControlTemplate> <!-- how do i bind to current row data--> </ControlTemplate> </dxg:GridColumn.DisplayTemplate> </dxg:GridColumn> </dxg:GridControl.Columns> </dxg:GridControl> 
+6
source share
1 answer
 <ControlTemplate> <TextBlock Text="{Binding Path=RowData.Row.FieldName}"> </TextBlock> </ControlTemplate> 
+8
source

Source: https://habr.com/ru/post/954186/


All Articles