Abhilash J A

Abhilash J A

  • 538
  • 2.4k
  • 596.4k

How to get each checkbox bind id in wpf c#?

Oct 20 2016 2:01 AM
Hello everyone,
 
I have Listview that showing list of user data with checkboxlist. How get these checkbox bind id on Deleete button click ?
 
  1. <ListView.View>  
  2.                <GridView>  
  3.                    <GridView.Columns>  
  4.                        <GridViewColumn>  
  5.                            <GridViewColumn.CellTemplate>  
  6.                                <DataTemplate>  
  7.                                    <CheckBox Tag="{Binding login_Id}" />  
  8.                                </DataTemplate>  
  9.                            </GridViewColumn.CellTemplate>  
  10.                        </GridViewColumn>  
  11.                        <GridViewColumn Width="100px" DisplayMemberBinding="{Binding FirstName}" Header="User Name" />  
  12.                        <GridViewColumn Width="90px" DisplayMemberBinding="{Binding Computer_Name}" Header="PC-Names" />  
  13.                        <GridViewColumn Width="150px" DisplayMemberBinding="{Binding IP_Address}" Header="IP Adress" />  
  14.                        <GridViewColumn Width="150px" DisplayMemberBinding="{Binding Name}" Header="Documents Scanned" />  
  15.                        <GridViewColumn Width="100px" DisplayMemberBinding="{Binding LogInTime}" Header="Last Login" />  
  16.                        <GridViewColumn Width="177px" DisplayMemberBinding="{Binding Scanned Document}" Header="Action" />  
  17.                    </GridView.Columns>  
  18.                </GridView>  
  19.            </ListView.View>  

  1. private void Delete_Click(object sender, RoutedEventArgs e)  
  2.       {  
  3.           /*How get these each checkbox id here?*/
  4.       }  


Answers (1)