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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:30:55+00:00 2026-05-26T21:30:55+00:00

Currently I have a GridView, and every element should have a separate ProgressBar. The

  • 0

Currently I have a GridView, and every element should have a separate ProgressBar. The elements represent separate downloads, and I’d like to show the state of the downloads using these ProgressBars.

But how should I update them? My problem is, that according to the docs (and what I’ve heard on the Google IO videos), the only way to update elements in AdapterViews is to update the assigned adapter, and call .notifyDatasetChanged() after every update.

Of course this does actually work in this case too, but the updates are quite frequent (5-10 updates sec). And calling .notifyDatasetChanged in this frequency breaks any interaction with the GridView. E.g. the user tries to long-click on an item in the Grid, but the clicking event stops, because a .notifyDatasetChanged was called to update the progress of a download.

Is there any other way to do this? Should I ditch AdapterViews and use something else?

  • 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-26T21:30:55+00:00Added an answer on May 26, 2026 at 9:30 pm

    For situations like yours with many frequent updates (many times a second), notifyDatasetChanged isn’t the right way to go – You need to update the individual views directly.

    Without seeing your code and the relationship between a file download and an entry in the GridView, it’s hard to say exactly what calls you’ll need, but:

    -GridView has a “getChildAt” you can use to grab a view at a specific index.
    -There’s no point in updating the view if it’s not even visible. If it’s not between getFirstVisiblePosition() and getLastVisiblePosition(), ignore it, it’ll get drawn with updated data whenever it gets redrawn.

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

Sidebar

Related Questions

Currently I using ITextSharp for exporting my gridview to pdf. My gridview have an
I am using VS2005 C#. Currently I have a GridView, and I have changed
I am using VS2005. Currently I have a delete linkButton in my gridview, and
I currently have a gridview that has an asp:ButtonField as one of the columns.
I currently have a Gridview , And I want to use client-side validation to
Currently I have a DetailsView attached to a GridView. When you select an item
I currently have an existing database and I am using the LINQtoSQL generator tool
We currently have code like this: Dim xDoc = XDocument.Load(myXMLFilePath) The only way we
The Setup: I currently have a page with a GridView control on it inside
I currently have a GridView scrolling vertically, and everything works fine. But now that

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.