How to add the NewItemTemplate to an empty grid?

Oct 14, 2009 at 12:56 PM


When I have an empty item source at the beginning, the data grid does not put a new item template row there. If I add one item, then it works.

It doesn't help if I set up :

IEditableCollectionView iecv =
iecv.NewItemPlaceholderPosition = NewItemPlaceholderPosition.AtEnd;

My grid is set up that the user can add a row. it is not read only.

How can I set up this thing that in case of an empty collection it puts there a new item row only?

thank you very much