This is a migrated thread and some comments may be shown as answers.

Selecting Next on row deletion triggered by collection change event

1 Answer 26 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Deepak N
Top achievements
Rank 1
Deepak N asked on 28 Sep 2009, 12:51 PM
Hi,

The requirement is to select  the next row after deletion of a row ,which is triggered due removal of item leading to Items Collection Changed event.
I tried  creating custom Grid with the following code and It did not work for me [for simplicity i'm selecting first element in the below code snippet]

//In constructor
Items.CollectionChanged += ItemsOnCollectionChanged;
    
        private void ItemsOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs args)
        {
            if(args.Action==NotifyCollectionChangedAction.Remove)
                SelectedItem = Items[0];
        }

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 29 Sep 2009, 01:00 PM
Hi Deepak N,

It seems that the problem cannot be reproduced with our Latest Internal Build (RadControls_for_WPF_2009_2_0925_Trial.zip). Could you download the latest build from our download section and try running your application with the latest binaries? Most probably the issue will be resolved.

All the best,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Deepak N
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or