Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 635613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:25:25+00:00 2026-05-13T20:25:25+00:00

I have an EntityDataSource with OnSelected event (fired after finished query). The event handler

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:25:25+00:00Added an answer on May 13, 2026 at 8:25 pm

    From http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.entitydatasource.selected(VS.100).aspx:

        The TotalRowCount property of the EntityDataSourceSelectedEventArgs 
    object shows the total number of objects in all pages, regardless of the 
    values passed by the data-bound control for paging. 
    
        TotalRowCount is only retrieved if the data-bound 
    control needs it, such as if paging is enabled.
    

    Is your data-bound control using paging?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an EntityDataSource: <asp:EntityDataSource ID=EntityDataSourcePersoneel runat=server ConnectionString=name=HotelTestDatabaseEntities DefaultContainerName=HotelTestDatabaseEntities EntitySetName=Personeels Include=Afdeling> </asp:EntityDataSource> I dynamically
On an ASP.NET web page I have an EntityDataSource: <asp:EntityDataSource ID=EntityDataSourceOrders runat=server ConnectionString=name=EntitiesContext DefaultContainerName=EntitiesContext
I have a FormView with paging enabled. The FormView is bound to an EntityDataSource
I have an EntityDataSource where I'm trying to replace some previous code-behind work. My
I have GridView that allows select. It takes data from EntityDataSource . How do
For the latest news items i have the following code <asp:EntityDataSource ID=entynews runat=server ConnectionString=name=CommerceEntities
I have an asp.net page with c# code-behind. I have an event that is
I have a strange problem that I don't understand about DataPager. After changing the
I have a GridView with an EntityDataSource. I want to filter the rows at
I'm using an EntityDataSource and creating a projection using the CommandText property to query

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.