This question is locked. New answers and comments are not allowed.
Hi #1. I can able to select the single row by passing the row index.. Selection mode is Extended only. public void setSelectedItemByIndex(int index) { this.SelectedItem = Items[index]; } How can i select multiple rows like this.selecteditems = ? #2. I need to swap rows by passing index .. for example giving sourceindex and targetindex. I did like this. but doesnt work. can u give a sample. public long RowSwapping(int SourceIndex, int TargetIndex) { long lResult = 0; IList lstsource = this.ItemsSource as IList; object objSource = lstsource[SourceIndex]; object objTarget = lstsource[TargetIndex]; lstsource.Remove(objSource); lstsource.Remove(objTarget); lstsource.Insert(SourceIndex, objTarget); lstsource.Insert(TargetIndex, objSource); this.ItemsSource = lstsource; return lResult; } 