On page load, if there is empty data source or there are no records, I need to show the default text in my WebGrid.
@if (Model.CustomerList.Count == null || Model.CustomerList.Count == 0)
{
<span>No records found.</span>
}
On page load, if there is empty data source or there are no records, I need to show the default text in my WebGrid.
@if (Model.CustomerList.Count == null || Model.CustomerList.Count == 0)
{
<span>No records found.</span>
}