how to find out if a specific table exists in a dataset

15.1k Views Asked by At

I have created an application which reads the records from excel files and 2D arrays and after merging them it will pass the data to ds.table[x]. i would like to know if there is a way for me to check if the ds.table[x] exist? and how can i do that in code behind ?

1

There are 1 best solutions below

4
On BEST ANSWER

You can check with the following if statement,

 if(ds.Tables.Contains("TableName"))