views:

62

answers:

0

After deleteing all the items in the bound collection, the datagrid.items.count is 1 and the only item in the item collection is newitemplaceholder but the datagrid does not show the newitemplaceholder. This can only occur if the last item is the newitemplaceholder and you attempt to edit it but instead of hitting enter you click the button that fires the delete event.

Since the selecteditem is no longer a newitemplaceholder because of the edit event, the item is considered to be a new item in the sourcecollection.

Before the delete is called, there is an item.count of 2 in the datagrid.

Any help on how to get the newitemplaceholder to show up in this odd situation?