Skip to content
Loading
  • Laxmidhar Sahoo
    0
    hi
    I can not understand why you want to comape with the same tables .What is the logic behind it.
    Or
    You want to compare to worksheet data with the data table ?
    0
  • Jignesh Kumar
    0
    Hi Priayanka,
     

    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. 
    1. dataSet.Tables.Count > 0 && dataSet.Tables[0].Rows.Count > 0  
    Please try below link,
     
    https://codereview.stackexchange.com/questions/6841/checking-datasets-for-tables-and-rows 
    0