المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How i know if my DataTable is empty?



C# Programming
07-27-2009, 04:51 PM
Hello,
I have a Datatable in my project and i am send sql string.
later he is fill my datatable.
How i know if they put in ther a data?

I try to ask:

if (dt != null)
OR
if (dt.Rows[0] != null)

Thank you.