Click here to Skip to main content
14,691,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I have Listview with checkboxes. Please look up on the below image url.

https://s23.postimg.org/irk3vdc0b/11_1.png

After loaded listview, and check checkbox item then click on above button and want show a another window.xaml page like popup. Please look up on the below image url.

https://s30.postimg.org/4u1j6o835/image.png

https://s27.postimg.org/75f2g8x9f/image.png

After showing this poppup, then fill textbox again click on 'Save' button. Then I want to the remove listview checked items. How can I do this programmatically?

What I have tried:

I have tried... Inside 1st class, I have get checked item's id and documentname (these are the stored procedure parameters)

private void Img_ArchiveSe_MouseLeftButtonDown1(object sender, MouseButtonEventArgs e)  
        {  
            foreach (DocumentsUser item in listView1.SelectedItems)  
            {  
                UserIdArc.Add(item.UserId.ToString());  
                ImgNameArc.Add(item.Parent_File_Name);                       
            }  
            AddArchiveNamexaml SP = new AddArchiveNamexaml();  
            SP.ShowDialog();  
}  
  
public static ObservableCollection<string> ImgNameArc = new ObservableCollection<string>();  
        public static ObservableCollection<string> UserIdArc = new ObservableCollection<string>();  


Then, 2nd class (ie; code behind of popup window.xaml) insted Save button click event, I have get list of items (List data = service.GetUserDocumentsArc(objUserIdArc, objImgNameArc); ) and want to bind listview from 1st class.

private void btnAddUser_Click(object sender, RoutedEventArgs e)  
        {  
            DMSBusinessLayer service = new DMSBusinessLayer();  
            string objImgNameArc = string.Join(",", UC_FileMgmt.ImgNameArc.ToArray());  
            string objUserIdArc = string.Join(",", UC_FileMgmt.UserIdArc.ToArray());  
            List data = service.GetUserDocumentsArc(objUserIdArc, objImgNameArc);/*Here getting all items that I want to bind on 1st window page's listview.*/  
}  


I have done, is this correct or not ? Please advice me.
Posted
Updated 26-Mar-20 1:34am

1 solution

The images given as link is not opening.
   
Comments
Richard Deeming 26-Mar-20 7:29am
   
If you want to ask for clarification, click the "Have a Question or Comment?" button under the question and post a comment.

Do not post your comment as a "solution" to the question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900