Gets or sets the text to display in the empty data row rendered when a GridView control is bound to a data source that does not contain any records.
Assembly: System.Web (in System.Web.dll)
abstract EmptyDataText : string with get, set override EmptyDataText : string with get, set
Property ValueType: System.String
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 GridView control when the data source that is bound to the control does not contain any records. Use the 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.
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.