....................
private void Button1_Click(object sender, System.EventArgs e)
{
string strFilePath=File1.PostedFile.FileName ;
string strSheetNamee="sheet1";
DataGrid1.DataSource =ExcelToDS(strFilePath,strSheetNamee).Tables[0].DefaultView  ;
DataGrid1.DataBind ();

} public DataSet ExcelToDS(string filePath,string sheetName)
{  
string strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+filePath+";Extended Properties=Excel 8.0;";
OleDbConnection  myConn=new OleDbConnection(strConn); 
            OleDbDataAdapter myDa=new OleDbDataAdapter("select * from ["+sheetName+"$]",myConn);
DataSet ds=new DataSet();
myDa.Fill(ds) ;
return ds;
}
................................
1.
name sex add
Name1 Male Add1
Name2 Male add2
Name3 male add3
//这样的数据时是对的
2.
a b c e
a b c d
a b c d
d d d d
//这样也对3.
1 2 3 4
2 2 3 3
3 3 3 3
4 4 4 4
//这时竟F1 F2 F3 F4 
  2 2 3 3 
  3 3 3 3 
  4 4 4 4 
4.
a b c d
1 2 3 4
b c d e
a a a a
1 1 1 1
6 6 6 6
//这个更不对了 竟成了            a b c d 
            1 2 3 4 
        
        
           1 1 1 1 
           6 6 6 6 !!!!!!!!!!!!郁闷啊...为什么会这样啊-_-,有什么办法能解决吗(在不改变数据表的情况下数字前加个'是可以解决但那不是想要的)-_-,
   好心人们帮帮忙啊