Jul 16, 2012

Check for the existence of a specific table in a dataset in c#.net

if ( dataSet.Tables["MyTable"] == null )
throw new exception("Table no present");

No comments:

Post a Comment