Found the problem. My constructor in the object that's part of my ObservableCollection wasn't declared public. *Hits head*. Thanks for your time.
Adding new rows to WPF DataGrid requires a trick. DataGrid relies on property fields of an item object. ExpandoObject enables to add new properties dynamically.
The DataGrid control in WPF 4.5 by default uses user interface virtualization for performance reasons.
The WPF DataGrid is part of the WPF Toolkit. The steps to add the DataGrid control to your project are as follows
The WPF DataGrid is a very flexible tool, however in its current state certain simple tasks can prove to be rather tricky. A fairly common task when working with DataGrid is detecting which row, or cell a user has clicked on, or
Disabling row selection in the WPF DataGrid included in .NET Framework 4 is not really easy. It is extremely difficult to do, unless you have the right tools and know exactly how to do it. But all the difficulty is in figuring out how to do it.
In this article I will describe two options to implement validation on the cells and rows of a WPF DataGrid.
4 Responses to WPF DataGrid, Read-Only Row. Pingback: Windows Client Developer Roundup 076 for 7/25/2011 - Pete Brown's 10rem.net.
Do you have any suggestions if I would like to implement a drag and drop operation on the detailrow of the wpf datagrid?
Tweet. This article has been guest blogged by Mahesh Sabnis. The WPF DataGrid has really got me interested to develop line-of-Business application, and I continue using it in different implementations. Read more at WPF: Two way TextBox Binding and WPF 4: Using ObjectDataProvider for DataBinding.