Datagrid: Ragged display

Mar 17, 2009 at 10:47 AM
Hi there

I have a strange effect using the datagrid:

I have some tables which content I want to browse in the datagrid (readonly).
Therefore I have a combo besides my datagrid that selects the table.
When I select table A, it is displayed in the datagrid.
After changing the selection from table A to B, table B is displayed.
The number of rows vary between 500 to 30000, the number of columns are between 3 and 25.

Now the problem: At arbitrary moments, some single lines have a row header displayed, so that these lines appear ragged.
I have the feeling (this is not reproducable) that it appears often after switching the window state from or to maximized.

What I found is that this will only happen when             HeadersVisibility="Column"
Setting it to "All" seems to work which is fine for me but maybe you like to fix this...

Please find the xaml below

Regards
Klaus
    <Grid>
      <DockPanel >
        <StackPanel Orientation="Horizontal" DockPanel.Dock="Top">
          <ComboBox x:Name="coModules"
                    ItemsSource="{Binding}"
                    IsSynchronizedWithCurrentItem="True"
                    ItemTemplate="{StaticResource dtModulesSimple}"
                    SelectionChanged="coModules_SelectionChanged"
            >
          </ComboBox>
          <ComboBox x:Name="coTables"
                    ItemsSource="{Binding}"
                    IsSynchronizedWithCurrentItem="True"
                    ItemTemplate="{StaticResource dtTablesSimple}"
                    SelectionChanged="coTables_SelectionChanged"
                    >
          </ComboBox>
        </StackPanel>
        <dg:DataGrid x:Name="dgTableDetails"
             EnableRowVirtualization="true"
             EnableColumnVirtualization="true"
             SelectionMode="Single"
             SelectionUnit="Cell"
             IsReadOnly="true"
             ItemsSource="{Binding}"
             AutoGenerateColumns="True"
             HeadersVisibility="Column"
             AutoGeneratingColumn="dgTableDetails_AutoGeneratingColumn" >
        </dg:DataGrid>
      </DockPanel>        
    </Grid>

 
Coordinator
Mar 18, 2009 at 9:26 PM
Can you reply back with a screenshot of the display bugs you are seeing? 
If you need you can create an issue and use codeplex to host the image.
Coordinator
Mar 18, 2009 at 9:32 PM
I think this might be due to the same issue reported here: http://wpf.codeplex.com/Thread/View.aspx?ThreadId=47047.
Mar 19, 2009 at 9:57 AM
please find the attached image


From: elclark [mailto:notifications@codeplex.com]
Sent: Mittwoch, 18. März 2009 21:26
To: Klaus Wiesel
Subject: Re: Datagrid: Ragged display [wpf:50413]

From: elclark

Can you reply back with a screenshot of the display bugs you are seeing?
If you need you can create an issue and use codeplex to host the image.