I have an EntityDataSource with OnSelected
event (fired after finished query). The event handler has event args of type EntityDataSourceSelectedEventArgs e
. Query runs fine without error and the IEnumerable e.Results
contains 1 object (I can run through a non-empty foreach-loop) but e.TotalRowCount
returns -1
.
Does somebody have an idea what this means and what information TotalRowCount
actually expresses? How can I determine the number of selected objects if not by using TotalRowCount
?