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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:12:57+00:00 2026-06-13T18:12:57+00:00

I have a grid that has rows in varying heights. I noticed that when

  • 0

I have a grid that has rows in varying heights. I noticed that when I scroll down the grid, the scrollbar thumb changes its height.

After some investigations I discovered that this is caused by UI virtualization: the grid doesn’t create all the items so it doesn’t know the total height of the grid, so instead it determines the total height by calculating the average row height of the rows it did create, and multiply this by the row count. This causes the thumb to change its size during scrolling since the virtualization creates new items and destroys the ones that are no longer displayed, which makes the grid think the total grid size has changed.

My question: Is there a way I can set the scroll thumb size myself using my own heuristics? Preferably with a non-intrusive way so I won’t have to re-template my control. Disabling virtualization is not an option.


Note: I’m using DevExpress DataGrid, but this behavior also happens for WPF DataGrid.

  • 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-06-13T18:12:59+00:00Added an answer on June 13, 2026 at 6:12 pm

    Have you considered using a template to style your scrollbar?

    Notice in the link that you can specifically style the thumb…
    Regarding your comment, You can also attempt to bind to the number of items in the DataGrid and perform whatever calculation you want to make the size of the thumb dynamic based on the number of items.

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

Sidebar

Related Questions

I have data grid that measures the height according to the rows it has,
I have a grid that has multiple rows. I want to hide/show one of
I have a gridview that has some 20 columns and 1000 rows. The grid
I have a one column grid, with rows of varying heights in a WPF
I have a grid view that has two simple columns, a report number and
I have a Telerik Grid which has a footer that needs to display column
I have a partial view that uses a Telerik MVC Grid, and it has
I have a data grid that has a checkbox item renderer in a cloumn
I have a div main that has a table grid . This table has
I have a Table that has an arbitrary amount of Rows. In these Rows

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.