DataSourceAllowsAddNew Property

Returns true if the data source supports adding records (read-only)
Public ReadOnly Property DataSourceAllowsAddNew As Boolean
public bool DataSourceAllowsAddNew {get;}

Adding records is only supported for DataPresenterBase.DataSources that implement the System.ComponentModel.IBindingList interface and return true from its System.ComponentModel.IBindingList.AllowNew property.

Adding new records is disabled by default and is not supported by all views, e.g. CarouselView does not support adding records directly so its CarouselView.IsAddNewRecordSupported returns false.

To enable adding records set the FieldLayoutSettings's AllowAddNew property to true.

Note: The location of the add record is specified via the FieldLayoutSettings's AddNewRecordLocation property.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also