Hi,
it depends how you set the
Items
collection of the
DataGrid
.
If the underlying items source implements
IEditableCollectionView
you could try this (in code) after setting
CanUserAddRows
to true:
var editableCollection = (IEditableCollectionView)dataGrid.Items;
if (editableCollection != null)
{
editableCollection.NewItemPlaceholderPosition = NewItemPlaceholderPosition.None;
}
This should prevent the datagrid to display the new item row.
Regards,
Thomas.