This question is locked. New answers and comments are not allowed.
I have a GridView with 1000 records. I use the following code to add a record:
After the user enters data for the new record and clicks out of the row, the grid scrolls to the top of the records. In the case where we have 1000 records, this is not acceptable. I want to disallow any default scrolling. There is no re-binding that occurs so that is not the issue. Please advise.
Thanks!
private void btnAdd_Click(object sender, RoutedEventArgs e) { CounterPartyExposure counterPartyExposure = this._viewModel.InsertNewItem(); if (counterPartyExposure != null) { // Scroll to item this.radGridView.ScrollIntoView(counterPartyExposure);
// Set current item this.radGridView.CurrentItem = counterPartyExposure; this.radGridView.CurrentColumn = this.radGridView.Columns["CounterParty"];
// BeginEdit on current record this.radGridView.BeginEdit(); } }After the user enters data for the new record and clicks out of the row, the grid scrolls to the top of the records. In the case where we have 1000 records, this is not acceptable. I want to disallow any default scrolling. There is no re-binding that occurs so that is not the issue. Please advise.
Thanks!