[Solved] C# How to clear Gridview data source without clearing the header, when clear button is clicked
Casting the Gridview datasource as a data table and clear the datatable and assign the cleared data table object to the gridview data source again will solves the problem, we hope you find them helpful.