Transfert data from excel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lukas

    #1

    Transfert data from excel

    i want to fill a daset with Excel data.

    For this i do
    OleDbDataAdapte r oCmd=new OleDbDataAdapte r("SELECT * FROM
    [sheet1$]",strCn);
    DataSet oDS=new DataSet();
    try
    {
    oCmd.Fil(oDS,"E xcelInfo");
    dataGrid2.DataS ource=oDS.Table s[0];
    }
    It's work with text data but don't work with numeric
    column in Excel .
    Can you explain me that.
    ..


Working...