i have one excel document and multiple sheets.sheets have many columns and row.i upload the document into my project.and the multiple sheets is bind to tables(sheet name is set as table name) using for loop.after the bind i change the table name to source1,source2,source3 (three sheets). Now how to bind(merge) the three tables in single table (source1).
I have Tried:
i have tried to rename the all tables to same name but the duplicate table is not allowed.how to bind the same table.

Vinay SinghPosted Aug 16, 2016, 4:29 AM
Bhuvanesh MohankumarPosted Aug 16, 2016, 4:20 AM
RajaPosted Aug 16, 2016, 12:31 AM
for (int k = 0; k < ds.Tables.Count; k++)
{
int c = k + 1;
string sheetname = ds.Tables[k].ToString();
if (ds.Tables[k].ToString() == "ExcelSheetName" + c)
{
ds.DataSetName = "Search"; ds.Tables[k].TableName = "Table" + c; ds.Tables["Table" + c].AcceptChanges();
}
}
RajaPosted Aug 12, 2016, 9:19 AM
Bikesh Srivastava
Can you Please elaborate.I have little bit confusion so only.Bikesh SrivastavaPosted Aug 12, 2016, 8:23 AM
RajaPosted Aug 12, 2016, 7:38 AM
Midhun TpPosted Aug 11, 2016, 10:47 AM
Midhun TpPosted Aug 11, 2016, 10:36 AM
RajaPosted Aug 11, 2016, 10:29 AM
Midhun TpPosted Aug 11, 2016, 10:00 AM