Bug in SketchFlow: Exporting a DataGrid to Word ignores column Width RRS feed

  • Question

  • Hi,

    When a WPF Prototype containing a DataGrid is exported to Word, the data grid in the resulting document ignores the Column width. The columns are compressed together.

    	<Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
    		<DataGrid Margin="8" ItemsSource="{Binding Collection}" AutoGenerateColumns="False">
    				<DataGridTextColumn x:Name="Column1" Width="100" Header="Column 1 W:100" Binding="{Binding Column1}"/>
    				<DataGridTextColumn x:Name="Column2" Width="*" Header="Column 2 W:*" Binding="{Binding Column2}" SortMemberPath="Column2"/>
    				<DataGridTextColumn x:Name="Column3" Header="Column 3 W:2*" Width="2*" Binding="{Binding Column3}"/>

    To reproduce the bug create a new WPF Application Prototype in SketchFlow, insert a DataGrid, add some columns and set the width (for example the first 100, the second * and the third 2*). On the screen the result is correct but if you export the document to word using Expression Blend 4 + Sketchflow, the column sizes will be ignored.


    Marco Bettiolo

    Thursday, July 29, 2010 2:03 PM

All replies