WPF - Weird results with DataGrid - extra line for editing entries

Posted by Jim Beam on Stack Overflow See other posts from Stack Overflow or by Jim Beam
Published on 2010-05-21T16:43:18Z Indexed on 2010/05/21 16:50 UTC
Read the original article Hit count: 215

Filed under:
|
|

Working with WPF and C#. I have a page with a datagrid that lists a series of objects with List as the DataContext. I recently had it working in the code behind and the Datagrid would show the extra line at the bottom of the datagrid for new entries. Now, I have moved the exact same code to its own library project. The data still appears but the extra line for entry does not and users cannot add a new record.

I have already tried using grid.CanUserAddNew = true; but that does not solve it. So, it must be something in the List object - it's the exact same code as before, only pulling from a library.

Help.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about c#