WPF中dxg:GridControl控件的GridColumn对象如何绑定对象的对象的字段
--------------------编程问答--------------------
<dxg:GridControl AutoPopulateColumns="True" x:Name="gc01" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" DockPanel.Dock="Bottom" Width="Auto" Height="Auto">
<dxg:GridControl.Columns>
<dxg:GridColumn x:Name="colID" FieldName="ID" MinWidth="50" Width="Auto" />
<dxg:GridColumn x:Name="col" FieldName="另一个对象的字段" MinWidth="60" Width="Auto" />
</dxg:GridControl.Columns>
</dxg:GridControl>
<dxg:GridColumn x:Name="colDataType" FieldName="FieldDataType" Header="Data Type"
DisplayMemberBinding="{Binding Path=RowData.Row.FieldDataType.name, RelativeSource={RelativeSource Self} }" HorizontalHeaderContentAlignment="Center"
BestFitMode="AllRows" BestFitArea="Rows" HorizontalAlignment="Right" Fixed="Right" FixedWidth="True"
MinWidth="100" />
用这个就行了RowData.Row
补充:.NET技术 , C#