Question: how to export data from gridview to excel sheet in c#?
Answer: private void ExportGridToExcel() { Response. Clear(); Response. Buffer = true; Response. ClearContent(); Response. ClearHeaders(); Response. Charset = ""; string FileName ="Vithal"+DateTime. Now+". xls";