Suppose I have values in the dataset, I have to use it using the data table and I have to check and apply the condition in table1 of the dataset using a data table.
- private void generateResult_paid(DataTable dt, IXLWorksheet worksheet, string sheetname)
- {
- if(table1 of dataset)
- lineNum = 11;
- else
- lineNum = 1;
- }
I have to used value in the data table, not in the data set.
How I get table1 of the dataset using a data table.


Amit MohantyPosted Jan 27, 2020, 10:19 AM
Jignesh KumarPosted Jan 27, 2020, 9:47 AM
I think you can have multiple tables inside dataset not in datatable. If you want to check datatable inside dataet then you can check first condition on dataset has at list one table. Table[0] means your first table inside dataset. you can change this number based on select statement.
Laxmidhar SahooPosted Jan 26, 2020, 4:01 PM
Priyanka SinghPosted Jan 25, 2020, 1:16 PM