Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Datagrid works different under .NET 4.0 and 4.5

$
0
0

After Update from .NET 4.0 to 4.5 I see only small black lines in my Datagrid.
I bind the Datagrid to a Datatable. It works fine under .NET 4.0.

The XAML and the Code behind:

<ListBoxName="DumpList"Grid.Row="2"Grid.Column="0"HorizontalContentAlignment="Stretch"ItemsSource="{Binding m_dump}"ScrollViewer.HorizontalScrollBarVisibility="Disabled"><ListBox.ItemTemplate><DataTemplate><Grid><Grid.RowDefinitions><RowDefinitionHeight="100"/></Grid.RowDefinitions><DataGridName="DumpGrid"Grid.Row="0"ItemsSource="{Binding}"AutoGenerateColumns="True"IsReadOnly="True"SelectionMode="Extended"HorizontalScrollBarVisibility="Visible"></DataGrid></Grid></DataTemplate></ListBox.ItemTemplate></ListBox>
privateObservableCollection<DataTable> _dump =newObservableCollection<DataTable>();publicObservableCollection<DataTable> m_dump{
        get{return _dump;}set{
            _dump = value;OnPropertyChanged("m_dump");}}



Where could be the Problem?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>