Back to Devexpress

IModelCommonMemberViewItem.NullText Property

expressappframework-devexpress-dot-expressapp-dot-model-dot-imodelcommonmemberviewitem-7998938d.md

latest2.5 KB
Original Source

IModelCommonMemberViewItem.NullText Property

Specifies the text that a Property Editor displays when its value is null or String.Empty. WinForms Property Editors also show this text if their value is DBNull.Value

Namespace : DevExpress.ExpressApp.Model

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
[ModelBrowsable(typeof(NullTextVisibilityCalculator))]
string NullText { get; set; }
vb
<ModelBrowsable(GetType(NullTextVisibilityCalculator))>
Property NullText As String

Property Value

TypeDescription
String

A text that a Property Editor displays when its value is null, String.Empty, or DBNull.Value (WinForms only).

|

Remarks

The following Model Editor nodes allow you to specify this property:

  • Views | <DetailView> | Items | <ViewItem>
  • BOModel | <Class> | OwnMembers | <Member>

The following image illustrates the result.

Note

You can also set the PropertyEditor.NullText property in code. Refer to its description to see an example.

See Also

IModelCommonMemberViewItem Interface

IModelCommonMemberViewItem Members

DevExpress.ExpressApp.Model Namespace