How can I disable selecting in a WPFTooklit's DataGrid?
I tried modifying the solution that works for ListView (from WPF ListView turn off selection), but that doesn't work:
<tk:DataGrid>
<tk:DataGrid.ItemContainerStyle>
<Style TargetType="{…
I tried the following, all of which fail on function ScrollIntoView and give a NullReferenceException:
// doesn't work
grid.SelectedItem = sItem;
grid.ScrollIntoView(sItem);
// doesn't work
grid.SelectedItem = sItem;
grid.Focus();
grid.CurrentColumn = grid.Columns[0];
grid.UpdateLayout();
grid.ScrollIntoView(sItem,grid.…
I'm new to WPF. I just want to know how should we add columns and rows programmatically to a DataGrid in WPF. The way we used to do it in windows forms. create table columns and rows, and bind it …