Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: List View Shift Selection behaves indifferently Pin
Richard MacCutchan29-Mar-13 2:11
mveRichard MacCutchan29-Mar-13 2:11 
GeneralRe: List View Shift Selection behaves indifferently Pin
rakeshkava29-Mar-13 3:06
rakeshkava29-Mar-13 3:06 
GeneralRe: List View Shift Selection behaves indifferently Pin
rakeshkava31-Mar-13 22:51
rakeshkava31-Mar-13 22:51 
GeneralRe: List View Shift Selection behaves indifferently Pin
rakeshkava31-Mar-13 23:50
rakeshkava31-Mar-13 23:50 
GeneralRe: List View Shift Selection behaves indifferently Pin
Richard MacCutchan1-Apr-13 0:02
mveRichard MacCutchan1-Apr-13 0:02 
GeneralRe: List View Shift Selection behaves indifferently Pin
rakeshkava1-Apr-13 0:14
rakeshkava1-Apr-13 0:14 
AnswerRe: List View Shift Selection behaves indifferently Pin
Abhinav S29-Mar-13 3:57
Abhinav S29-Mar-13 3:57 
GeneralRe: List View Shift Selection behaves indifferently Pin
rakeshkava31-Mar-13 23:00
rakeshkava31-Mar-13 23:00 
Hi Abhinav,

I just tried a sample where I have a ListView and Two Buttons Next and Previous....

public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
lvw1.Items.Add("Row1");
lvw1.Items.Add("Row2");
lvw1.Items.Add("Row3");
lvw1.Items.Add("Row4");
lvw1.Items.Add("Row5");
lvw1.Items.Add("Row6");
lvw1.Items.Add("Row7");
lvw1.SelectedIndex = 0;
}

private void Next_Click(object sender, RoutedEventArgs e)
{
lvw1.SelectedIndex = lvw1.SelectedIndex + 1;
}

private void Previous_Click(object sender, RoutedEventArgs e)
{
lvw1.SelectedIndex = lvw1.SelectedIndex - 1;
}
}




I make first item as selected by default.

And then on Next and Previous I just move the selected index according to the action.


Here also we can observe that when I do Mouse down and select an item and then do shift select..everything is good. for example ..Mouse down on Row2 and then Shift select Row 4.

Row2,Row3,Row4 gets selected..All good.


Now I do click on Next Row3 gets selected...Now when I do Shift Select Row 5

Row2,Row3,Row4,Row5 gets selected. which is wrong as the expected selection should have been Row3,Row4,Row5.


Now I am confused whether this is the existing behavior of WPF listview or is there a workaround for the above...

Also if we keep doing Next and then do shift selection after several Next operation I find that shift selection keeps all the selections in memory and selects bunch of rows..



Any help would be appreciated.Need this feature shipped in a week Frown | Frown | :-(


Thanks
Rakesh
GeneralRe: List View Shift Selection behaves indifferently Pin
rakeshkava31-Mar-13 23:49
rakeshkava31-Mar-13 23:49 
GeneralRe: List View Shift Selection behaves indifferently Pin
Abhinav S1-Apr-13 20:22
Abhinav S1-Apr-13 20:22 
QuestionRegarding About Image Url Pin
Member 583355028-Mar-13 23:45
Member 583355028-Mar-13 23:45 
AnswerRe: Regarding About Image Url Pin
Manfred Rudolf Bihy29-Mar-13 1:09
professionalManfred Rudolf Bihy29-Mar-13 1:09 
Questionvisual studio 2010 c# error Pin
User349028-Mar-13 18:05
User349028-Mar-13 18:05 
AnswerRe: visual studio 2010 c# error Pin
annex4528-Mar-13 21:12
annex4528-Mar-13 21:12 
GeneralRe: visual studio 2010 c# error Pin
User349029-Mar-13 1:30
User349029-Mar-13 1:30 
GeneralRe: visual studio 2010 c# error Pin
annex4529-Mar-13 1:32
annex4529-Mar-13 1:32 
QuestionSimulating Mouse Scrolling Pin
annex4528-Mar-13 12:19
annex4528-Mar-13 12:19 
AnswerRe: Simulating Mouse Scrolling Pin
Jasmine250128-Mar-13 13:10
Jasmine250128-Mar-13 13:10 
QuestionCreate MP4 video from images Pin
cabasm28-Mar-13 10:35
cabasm28-Mar-13 10:35 
AnswerRe: Create MP4 video from images Pin
Gerry Schmitz28-Mar-13 12:08
mveGerry Schmitz28-Mar-13 12:08 
GeneralRe: Create MP4 video from images Pin
cabasm28-Mar-13 12:37
cabasm28-Mar-13 12:37 
GeneralRe: Create MP4 video from images Pin
Gerry Schmitz28-Mar-13 12:47
mveGerry Schmitz28-Mar-13 12:47 
GeneralRe: Create MP4 video from images Pin
cabasm29-Mar-13 4:46
cabasm29-Mar-13 4:46 
QuestionC# WPF Accessing parameter of chosen data grid row Pin
johnyjj228-Mar-13 8:47
johnyjj228-Mar-13 8:47 
AnswerRe: C# WPF Accessing parameter of chosen data grid row Pin
OriginalGriff28-Mar-13 9:20
mveOriginalGriff28-Mar-13 9:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.