I need to determine if the IQueryable Method returns with Data or "Empty" when applied to a RadGrid data source, for example:
RadGrid.DataSource = Method(x);
if (Method(x) == yyy)
{
button.Enabled = true;
}
else
{
button.Enabled = false;
}
I tried using "zero" instead of "yyy", but without success. When you go through the code, the IQueryable Method returns as "Empty", but I'm not sure how to verify that using the If statement.
What does the IQueryable method return, as if it were returned as Empty, and how can I check that using the If statement?
Lando source
share