Priyanka Singh

Priyanka Singh

  • 624
  • 1.4k
  • 675.8k

How to check particular table in datatable in c#

Jan 25 2020 11:39 AM
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.
  1. private void generateResult_paid(DataTable dt, IXLWorksheet worksheet, string sheetname)  
  2. {  
  3.     if(table1  of dataset)    
  4.         lineNum = 11;    
  5.     else    
  6.         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.

Answers (7)