Home Forums WPF controls Xceed DataGrid for WPF DataGrid.Colum TextWrapping not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • HanzieV
    Participant
    Post count: 13
    #44903 |

    Hi,

    could someone please explain why the text wrapping on the Name field in the example below is not working ?

    <dg:DataGridControl x:Name=”mainDataGrid” Grid.Row=”2″ bx:DataGridDoubleClickCommand.DoubleClickCommand=”{Binding MainDataGridDoubleClickCmd}” ItemsSource=”{Binding MainCollectionView}” SelectedItem=”{Binding CurrentModel}” ReadOnly=”True” AutoCreateColumns=”False”>

    <dg:DataGridControl.DefaultDetailConfiguration>
    <dg:DefaultDetailConfiguration dg:TableView.IsAlternatingRowStyleEnabled=”False”/>
    </dg:DataGridControl.DefaultDetailConfiguration>
    <dg:DataGridControl.Columns>
    <dg:Column Title=”{bx:LocalizeBinding ID, Global=True}” FieldName=”CustomerID” Width=”75″ />
    <dg:Column Title=”{bx:LocalizeBinding Code, Global=True}” FieldName=”CustomerCode” Width=”80″/>
    <dg:Column Title=”{bx:LocalizeBinding ShortName}” FieldName=”ShortName” Width=”130″/>
    <dg:Column Title=”{bx:LocalizeBinding Name, Global=True}” FieldName=”Name” Width=”160″ MaxWidth=”160″
    TextWrapping=”Wrap”/>
    <dg:Column Title=”{bx:LocalizeBinding Phone, Global=True}” FieldName=”Phone” Width=”160″/>
    <dg:Column Title=”{bx:LocalizeBinding Email, Global=True}” FieldName=”Email” Width=”270″/>
    <dg:Column Title=”{bx:LocalizeBinding Zip, Global=True}” FieldName=”Zip” Width=”100″/>
    <dg:Column Title=”{bx:LocalizeBinding City, Global=True}” FieldName=”City” Width=”200″/>
    <dg:Column Title=”{bx:LocalizeBinding Country, Global=True}” FieldName=”Country”/>
    <dg:Column Title=”{bx:LocalizeBinding Type, Global=True}” FieldName=”CustomerType” Width=”180″/>
    <dg:Column Title=”{bx:LocalizeBinding State, Global=True}” FieldName=”State” Width=”60″/>
    </dg:DataGridControl.Columns>
    </dg:DataGridControl>

    HanzieV
    Participant
    Post count: 13

    I added a TableView to the DataGrid and now wrapping is working just fine.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.