Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to get each checkbox bind id in wpf c#?
Mani Kandan
Oct 20 2016 2:01 AM
374
Reply
Hello everyone,
I have Listview that showing list of user data with checkboxlist. How get these checkbox bind id on Deleete button click ?
<
ListView.View
>
<
GridView
>
<
GridView.Columns
>
<
GridViewColumn
>
<
GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
Tag
=
"{Binding login_Id}"
/>
</
DataTemplate
>
</
GridViewColumn.CellTemplate
>
</
GridViewColumn
>
<
GridViewColumn
Width
=
"100px"
DisplayMemberBinding
=
"{Binding FirstName}"
Header
=
"User Name"
/>
<
GridViewColumn
Width
=
"90px"
DisplayMemberBinding
=
"{Binding Computer_Name}"
Header
=
"PC-Names"
/>
<
GridViewColumn
Width
=
"150px"
DisplayMemberBinding
=
"{Binding IP_Address}"
Header
=
"IP Adress"
/>
<
GridViewColumn
Width
=
"150px"
DisplayMemberBinding
=
"{Binding Name}"
Header
=
"Documents Scanned"
/>
<
GridViewColumn
Width
=
"100px"
DisplayMemberBinding
=
"{Binding LogInTime}"
Header
=
"Last Login"
/>
<
GridViewColumn
Width
=
"177px"
DisplayMemberBinding
=
"{Binding Scanned Document}"
Header
=
"Action"
/>
</
GridView.Columns
>
</
GridView
>
</
ListView.View
>
private
void
Delete_Click(
object
sender, RoutedEventArgs e)
{
/*How get these
each
checkbox id here?*/
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
buttons acting as arrow keys in wpf
How to add a combobox dynamically