DetailsView.EmptyDataText Property
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: virtual property String^ EmptyDataText { String^ get (); void set (String^ value); }
/** @property */ public String get_EmptyDataText () /** @property */ public void set_EmptyDataText (String value)
public function get EmptyDataText () : String public function set EmptyDataText (value : String)
Not applicable.
Property Value
The text to display in the empty data row. The default is an empty string (""), which indicates that this property is not set.The empty data row is displayed in a DetailsView control when the data source that is bound to the control does not contain any records. Use the EmptyDataText property to specify the text to display in the empty data row. To control the style of the empty data row, use the EmptyDataRowStyle property. Alternatively, you can define your own custom user interface (UI) for the empty data row by setting the EmptyDataTemplate property instead of this property.
Note: |
|---|
| If both the EmptyDataText and EmptyDataTemplate properties are set, the EmptyDataTemplate property takes precedence. |
The value of EmptyDataText is stored in view state.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
Note: