Excel Data to gridview ? In Asp.net?
<p>In web application, i am trying to get the data from excel and bind to gridview, it is working  fine, but when the excel contain the row whcih is having only single value in the cell and remaing cells are empty then it is showing default letters like [F, G, H..] like in top of the gridview header.The below is the actual excel Sheet 
<img src="http://i.stack.imgur.com/oezG9.jpg" alt="enter image description here"></p>

<p>below  is the excel sheet format 
<img src="http://i.stack.imgur.com/8FCMI.png" alt="enter image description here"></p>

<p>This is my code which is in page load even</p>

<pre><code>      System.Data.DataTable dt = null;

            string excelFile = Server.MapPath("./performances.xls");
            DataSet ds = new DataSet();
            // Connection String. 
            String connString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + excelFile + ";Extended Properties=Excel 8.0;";
            // Create connection. 
            oledbConn = new OleDbConnection(connString);
            // Opens connection with the database. 
            oledbConn.Open();
            // Get the data table containing the schema guid, and also sheet names. 
            dt = oledbConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
            if (dt == null)
            {
                return;
            }
            String[] excelSheets = new String[dt.Rows.Count];
            int i = 0;
            // Add the sheet name to the string array. 
            // And respective data will be put into dataset table 
            foreach (DataRow row in dt.Rows)
            {
                excelSheets[i] = row["TABLE_NAME"].ToString();
                OleDbCommand cmd = new OleDbCommand("SELECT * FROM [" + excelSheets[i] + "]", oledbConn);
                OleDbDataAdapter oleda = new OleDbDataAdapter();
                oleda.SelectCommand = cmd;
                oleda.Fill(ds, "TABLE");
                i++;
            }
            // Bind the data to the GridView 
            grdMygrd .DataSource = ds.Tables[0].DefaultView;
            grdMygrd.DataBind();
            Session["Table"] = ds.Tables[0];
</code></pre>
