列表的列中使用数据模板
<dxg:TreeListColumn Header="{DynamicResource ResourceKey=ResRoomNumber}" MinWidth="80" AllowEditing="True"> <dxg:TreeListColumn.CellTemplate> <DataTemplate> <dxe:TextEdit EditValue="{Binding Path=RowData.Row.AEncounter.RoomNum,Mode=TwoWay}" Name="teRoomNum"/> </DataTemplate> </dxg:TreeListColumn.CellTemplate> </dxg:TreeListColumn>