Introduction:
Here I will explain how to display or show gridview header and footer when the gridview is empty in asp.net using c#, vb.net with example or show gridview header and footer when there is no data or empty in asp.net using c#, vb.net with example. By using gridview properties ShowHeaderWhenEmpty, EmptyDataText we can show gridview header even when data is empty but to show footer we need to write custom code by adding new to gridview in asp.net.
Description:
In previous articles I explained populate dropdownlist selected value in gridview in asp.net, group columns in gridview, gridview examples in asp.net, cascading dropdownlist in gridview using asp.net, change gridview header dynamically in asp.net, Delete multiple rows in gridview using checkbox in asp.net and many articles relating to gridview, asp.net, c#,vb.net and jQuery. Now I will explain how to display or show gridview header and footer when the gridview is empty in asp.net using c#, vb.net.
In previous articles I explained populate dropdownlist selected value in gridview in asp.net, group columns in gridview, gridview examples in asp.net, cascading dropdownlist in gridview using asp.net, change gridview header dynamically in asp.net, Delete multiple rows in gridview using checkbox in asp.net and many articles relating to gridview, asp.net, c#,vb.net and jQuery. Now I will explain how to display or show gridview header and footer when the gridview is empty in asp.net using c#, vb.net.