Hi Jason,
It's possible that a DataSet is not null but without any DataTable in it.
For example, you instance a DataSet:
DataSet ds = new DataSet();
The ds is not null, but there is no DataTable in it. Even if there are
DataTables in a DataSet, maybe there is not any data in it. See following
code:
DataTable tbl = new DataTable();
ds.Tables.Add(tbl);
The DataTable, tbl, is an empty one.
HTH
Elton Wang
"Jason Huang" wrote:
Hi,
How to we tell if a DataSet is null in a ASP.Net C# Windows Form?
Is it possible that a DataSet is not null but has no DataTable?
What will be the simplest code?
Thanks for help.
Jason