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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:40:08+00:00 2026-05-25T06:40:08+00:00

When the list underlying my databound DXGrid is updated, the scrollbar of the grid

  • 0

When the list underlying my databound DXGrid is updated, the scrollbar of the grid updates but the body of the grid does not, at least not right away. As soon as I click on the grid scrollbar, the body does refresh.

To illustrate – here is my application in the initial state:

Empty Grid

When I add four new objects to my underlying list, only the scrollbar changes:

Scrollbar Changes

Finally, when I press on the “down” button at the bottom of the scrollbar, the entire grid refreshes:

Refreshed Grid

Expected behaviour: The grid should refresh properly whenever the underlying database list is updated, not much later when the user tries to interact with the list.

The Xaml for my GridControl looks like this:

    <dxg:GridControl dxlc:DockLayoutControl.Dock="Client" 
                     ItemsSource="{Binding Project.TimeSeries}">

        <dxg:GridControl.Columns>
            ... omitted ...
        </dxg:GridControl.Columns>
        <dxg:GridControl.View>
            <dxg:TableView Name="tableView1"
                           AllowEditing="False"
                           AllowColumnFiltering="True"
                           ShowAutoFilterRow="True"
                           ShowGroupPanel="False" 
                           FocusedRow="{Binding SelectedTimeSeries, Mode=TwoWay}"/>
        </dxg:GridControl.View>
    </dxg:GridControl>

DataContext of the form is set to a TimeSeriesPresenter:

public class TimeSeriesPresenter : ITimeSeriesPresenter
{
    public TimeSeriesPresenter(ITimeSeriesVisual view)
        : base(view) { ... }

    public BuilderProject Project 
        { get { ... } set { ... } }

    public TimeSeriesDefinition SelectedTimeSeries 
        { get { ... } set { ... } }

and a BuilderProject looks like this:

public class BuilderProject : ViewModelBase
{
    public IList<TimeSeriesDefinition> TimeSeries
    { get { ... } }
    ...
}

Both of these objects implement INotifyPropertyChanged and the properties are triggering the PropertyChanged event properly. So, everything should just work, right?

Clearly the DXGrid is receiving some kind of update from the view model, because the scrollbar changes. But why doesn’t it repaint entirely?

Is there some kind of “mode” required for a DXGrid to do DataBinding normally?
What am I missing?

Update

All of my data objects inherit from ViewModelBase which implements the INotifyPropertyChanged interface. In addition to TimeSeriesPresenter and BuilderProject (shown above), here’s a summary of TimeSeriesDefinition:

public class TimeSeriesDefinition : ViewModelBase
{
    public string SeriesID
    {
        get { return mSeries; }
        set { 
            if (!Equals(mSeries, value) {
                mSeries = value;
                OnPropertyChanged("SeriesID");
            }
        }
    }
    ... etc ...
}
  • 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-25T06:40:09+00:00Added an answer on May 25, 2026 at 6:40 am

    The source of the problem was this code:

    public class BuilderProject : ViewModelBase
    {
        public IList<TimeSeriesDefinition> TimeSeries
        { get { ... } }
        ...
    }
    

    Even though IList<T> should be supported, in practice its not.

    The requisite fix was to change to using ObservableCollection<T> instead:

    public class BuilderProject : ViewModelBase
    {
        public ObservableCollection<TimeSeriesDefinition> TimeSeries
        { get { ... } }
        ...
    }
    

    In my case, this led to parallel maintenance of two lists – an underlying IList<> in the presentation agnostic model, and an ObservableCollection<> in the ViewModel. Keeping the two lists in sync is a bit of overhead, but not hard to get right.

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

Sidebar

Related Questions

I'm using JQuery Mobile 1.1.0 and I'm having trouble keeping the underlying list selections
List<Foo> fooList = Session[foo] as List<Foo>; fooList.Add(bar); Does the call to Add() change the
I'm running into an IllegalStateException updating an underlying List to an Adapter (might be
I have a data grid in a view that is bound to a List
The boost ptr_list documentation states that the container uses an underlying std::list<void*> . Why
Is there a way of easily retrieving a list of tables underlying a view.
I'm trying to make a Stack using an underlying linked list structure. Maybe I'm
What is the typical underlying data structure used to implement Python's built-in list data
what is underlying data structure of STL list, vector and set ? My solution:
List multiplies when its full, but hashmap/hashtable multiplies when it reaches loadfactor, so why

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.