I keep getting this button in the header, I can click on the button to select all rows. This shifts the data from the header. Any ideas? Thanks at Advance.
Datagrid image at the link:
http://picasaweb.google.com/lh/photo/CahvlINknhL5ykIW2zCfIw?feat=directlink
<dg:DataGrid.Columns> <dg:DataGridTextColumn Header="Description" Width=".5*" Binding="{Binding Description}"> </dg:DataGridTextColumn> <dg:DataGridTextColumn Header="Type" Width="100" Binding="{Binding Type}"> </dg:DataGridTextColumn> <dg:DataGridTextColumn Header="Amount $" Width="100" Binding="{Binding Amount}"> </dg:DataGridTextColumn> <dg:DataGridTextColumn Header="Effective From Date" Width="100" Binding="{Binding EffectiveFromDate}" IsReadOnly="True"> </dg:DataGridTextColumn> <dg:DataGridTextColumn Header="Effective To Date" Width="100" Binding="{Binding EffectiveToDate}" IsReadOnly="True"> </dg:DataGridTextColumn> <dg:DataGridTextColumn Header="Status" Width="100" Binding="{Binding Status}"> </dg:DataGridTextColumn> </dg:DataGrid.Columns>
I am sure you already understood this, but try setting this property in your data grid.
HeadersVisibility = "Column"
This is strange. If I just take your code and paste it into an empty DataGrid element, I don't get this behavior.
DataGrid
What does your definition of a DataGrid element look like?
Also, which version of the WPF Toolkit are you using?
I ran into this problem. This can happen when your application defines a default style for a button with a minimum width.
The solution is to not display the row headers or change the default button style.
set rowHeadersVisible = false, this should remove the extra column in the datagrid on the left
https://fooobar.com/questions/857073/capture-live-video-from-webcam-using-java-an-jmf