In your page load or button event enter the code:
{
dynamic DBConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Server.MapPath("ur excel file location") + ";" + "Extended Properties=\"Excel 8.0;HDR=Yes\"");
DBConnection.Open();
string SQLString = "SELECT * FROM [ur excel sheet name$]";
dynamic DBCommand = new OleDbCommand(SQLString, DBConnection);
System.Data.IDataReader DBReader = DBCommand.ExecuteReader();
gv.DataSource = DBReader;
gv.DataBind();
DBReader.Close();
DBConnection.Close();
}
This code uses excel as DB and using a datareader binding the excel sheet values directy to gridview without hitting DB.
Hope this helps u..