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 3784044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:19:02+00:00 2026-05-19T11:19:02+00:00

Greetings, I have a DataGrid showing a PagedCollectionView which has the total amount of

  • 0

Greetings,

I have a DataGrid showing a PagedCollectionView which has the total amount of records included.

In total we have about 4220 records, with 20 records showing per page we have about 210 pages.

Now I’ve been trying to implement this:

When I search for a person I want to have this person show on top of the page AND have the page set to anything that is near the page it would be on.

I managed to get the person on top using the example given in Linq Get items higher then lastname however the PagedCollectionview gets overwriten by these results. Since this skips everything before the wanted person the amount of pages differs.

So basicly what I want is to have a searchfield where I can enter “Jan”. And then I want the page to jump to the page where Jan could be (+/- 1 page lower or higher) and have “Jan” as first record.

  • 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-19T11:19:02+00:00Added an answer on May 19, 2026 at 11:19 am

    Found my own answer.

    Not in a very nice way but, since at all times firstly the total amount of members is being loaded, I created a check to see if the currently loaded amount is higher then the total amount first loaded.

    Like:

    if (loadOperation.TotalEntityCount >= itemCount || !string.IsNullOrEmpty(FilterText))
    {
        this.ItemCount = loadOperation.TotalEntityCount;
    }
    else
    {
        if (!DeleteMember)
        {
            pageIndex = (int)((this.ItemCount - loadOperation.TotalEntityCount) / this.PageSize);
            RaisePropertyChanged("PageIndex");
        }
        else
        {
            DeleteMember = false;
            itemCount -= 1;
        }
    }
    

    The delete member is to make sure it doesn’t try to set the page index when a member is deleted and thus TotalEntityCount would be 1 lower then itemcount.

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

Sidebar

Related Questions

Greetings, I have to following problem. I have a WCF Service which runs under
greetings, i have a simple question. I have some page that i use for
Greetings, I have a large .Net web app which runs on a farm of
Greetings All; I have a LinkedList of type String which contain some words like
Greetings I have a Main Window which will hold multiple User Controls. I will
Greetings everyone I have this regular expression which goes as follow: $thread_views_exp = '~<td
Greetings good people of the internet:) I have a string value 1,5 which after
Greetings. I have a function which watches the content of price field and updates
Greetings, I have a particular object which can be constructed from a file, as
Greetings. I have an 2-D array of size [N][N] which will represent a rectangular

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.