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

  • Home
  • SEARCH
  • 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 3992288
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:44:49+00:00 2026-05-20T06:44:49+00:00

I have a DataGrid that I have bound to a property: <cd:DataGrid Name=myDataGrid ItemsSource={Binding

  • 0

I have a DataGrid that I have bound to a property:

<cd:DataGrid 
    Name="myDataGrid"
    ItemsSource="{Binding Mode=OneWay,Path=Thingies}"
    VerticalScrollBarVisibility="Auto" 
    HorizontalScrollBarVisibility="Auto">
...

When the Thingies property changes, once all rows in the DataGrid have been populated with the new contents of Thingies, I want the DataGrid to scroll to the bottom row.

In WinForms, I would have done this by subscribing to the DataBindingComplete event. MSDN Forums contains several suggestions on how to do this with Silverlight 4.0 but they range from completely evil to just plain fugly:

  • start a 100ms timer on load, and scroll when it elapses
  • count rows as they’re added, and scroll to the bottom when the number of added rows equals the number of entities in the data source

Is there an idiomatic, elegant way of doing what I want in Silverlight 4.0?

  • 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-20T06:44:49+00:00Added an answer on May 20, 2026 at 6:44 am

    Why not derive from DataGrid and simply create your own ItemsSourceChanged event?

           public class DataGridExtended : DataGrid
           {
                public delegate void ItemsSourceChangedHandler(object sender, EventArgs e);
    
                public event ItemsSourceChangedHandler ItemSourceChanged;
    
                public new System.Collections.IEnumerable ItemsSource
                {
                    get { return base.ItemsSource; }
                   set
                   {
                       base.ItemsSource = value; 
    
                       EventArgs e = new EventArgs();
                       OnItemsSourceChanged(e);
                   }
               }
    
               protected virtual void OnItemsSourceChanged(EventArgs e)
               {
                   if (ItemSourceChanged != null)
                       ItemSourceChanged(this, e);
               }
           }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data grid that looks like this <tk:DataGrid ItemsSource={Binding Parents} AutoGenerateColumns=False> <tk:DataGrid.Columns>
I have a datagrid that is bound to a observableCollection of Employees The user
I have found that datagrid columns can be dynamically created and bound in Silverlight.
I have a read-only datagrid bound to a domain data source. The data that
I have a datagrid that's bound to an observablecollection object. The collection may be
I have a problem with a data-bound DataGrid control, in that despite each column
I have a DataGrid bound to a PagedCollectionview property of my View-Model. I've added
I have a DataGrid that is bound to an ObservableCollection of JobItems. JobItems have
I have a DataGrid with VirtualizationMode=Recycling that is bound to an ObservableCollection in my
I have a datagrid that I want to add a button/s to at runtime.

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.