Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Reply
prevent listview row click checkbox checked wpf
Mani Kandan
Dec 23 2016 7:01 AM
316
Reply
Hello,
I have listview with contain Checkbox. I want to privent checkbox checked when click on listview row only allow on checkbox click.
<
GridViewColumn
>
<
GridViewColumn.CellTemplate
>
<
DataTemplate
>
<
CheckBox
Tag
=
"{Binding UserId}"
IsChecked
=
"{Binding RelativeSource={RelativeSource AncestorType=ListViewItem},Path=IsSelected}"
/>
</
DataTemplate
>
</
GridViewColumn.CellTemplate
>
</
GridViewColumn
>
public
partial
class
UC_FileMgmt : UserControl
{
public
UC_FileMgmt()
{
InitializeComponent();
DMSBusinessLayer service =
new
DMSBusinessLayer();
listView1.ItemsSource = service.GetUserDocuments();
}
}
How can I do this?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Collection data show on Grid when tree view selected Item
need advice - binding listview with poppup window in wpf c#.