Quantcast
Viewing all articles
Browse latest Browse all 18858

DataGrid - row selectors missing

Hi,

I have a simple DataGrid:

<DataGrid x:Name="gridEvents" CanUserAddRows="True"

CanUserDeleteRows="True" AutoGenerateColumns="True"

HeadersVisibility="All" ItemsSource="{Binding Path=Events}"></DataGrid>

For some mysterious reason the DataGrid row selectors are not shown. I think I tried everything, for example I added the following code to the window OnLoaded event handler:

double w = gridEvents.RowHeaderActualWidth; // w=0
gridEvents.RowHeaderWidth = 10;
w = gridEvents.RowHeaderActualWidth; // w=10

Nothing helps - the row selectors are not displayed.

Has anyone experienced similar behaviour?

Thanks,

Leszek


Wiki: wbswiki.com
Website: www.wisenheimerbrainstorm.com


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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