Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi There,

                                    We are experiencing a similar issue to what have been described here:

                                    WPF Datagrid default selected 0th row after setting Datasource
                                    http://community.devexpress.com/forums/p/81908/280888.aspx

                                    We have our WPF GridControl bound to the following public property:

                                    public IList<IndexRow> IndexRows
                                            {
                                                get
                                                {
                                                    return indexRows;
                                                }
                                                set
                                                {
                                                    indexRows = value;
                                                    OnPropertyChanged("IndexRows");
                                                }
                                            }

                                    This property is being set on a 5 minutes interval. However, whenever this property is being set the GridControl resets it's selected row back to the first row.
                                    Is there any resolution to this?

                                    Thanks,
                                    Yonatan

                                0

                                Hello,

                                Thank you for the report. Please provide a sample to illustrate the issue. We have fixed the issue you are referring to. It looks like you are having problems with GridControl binding.

                                Thank you, Marina

                                0

                                Hello Marina,

                                The sample is attached.
                                It is not the whole project though, just the relevant pieces.

                                The Grid is defined inside VolumeProfileDialog.xaml and the bound data is in VolumeProfileModel.cs

                                Thanks,
                                Yonatan

                                0

                                Hi Yonatan,

                                We have examined this problem. This behavior is by design, since it is not possible to maintain a FocusedRow if you re-assign the GridControl.DataSource.
                                If objects in your collection are not recreated on update, you can bind the TableView.FocusedRow property to corresponding object in your ViewModel (by using TwoWay binding) and in this task the FocuserRow should be maintained.
                                Otherwise, you need to restore the FocusedRow manually.

                                Thanks,
                                Andrew

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners