I have a report were I need to enable/disable some databands according to the count of datarows in a databand. But when I use the aggregte function Count in the event I get an error. there are no problem in using the "Count" in a textbox.
How can I solve this, or id there another solution.
The code I try to use in the event:
Code: Select all
if (Count(DataBand2) == 0) {
ChildBand1.Enabled = false;
} else {
ChildBand1.Enabled = true;
}
The name 'Count' does not exists in the class or namespace Reports.Report