There may be cases where you’d want to programmatically select an item in a WPF datagrid or a list. Usually, if the collection is large and only a part of it is visible at a time, you would also want the items to scroll into view automatically. Otherwise there’s no point in “selecting” an item […]
Posts with the datagrid tag
Accessing DataGrid data in C# with WPF
If you need to access row and column data values in a WPF DataGrid you’ll realize it is bit of a pain. It’s definitely easier to do this in WinForms but that may not be what you’re using. So here’s how you can access WPF DataGrid in your code: Do note that I’ve used the […]