Gets or sets the user-defined content for the empty data row rendered when a System.Web.UI.WebControls.GridView control is bound to a data source that does not contain any records.
Documentation for this section has not yet been entered.
The empty data row is displayed in a System.Web.UI.WebControls.GridView control when the data source that is bound to the control does not contain any records. You can define your own custom user interface (UI) for the empty data row by using the GridView.EmptyDataTemplate property.
To specify a custom template for the empty data row, first place <EmptyDataTemplate> tags between the opening and closing tags of the System.Web.UI.WebControls.GridView control. You can then list the contents of the template between the opening and closing <EmptyDataTemplate> tags. To control the style of the empty data row, use the GridView.EmptyDataRowStyle property. Alternatively, you can use the built-in UI for the empty data row by setting the GridView.EmptyDataText property instead of this property.
For information about how to programmatically access controls that you declare in an empty data template, see How to: Access Server Controls by ID.
If both the GridView.EmptyDataText and GridView.EmptyDataTemplate properties are set, the GridView.EmptyDataTemplate property takes precedence.