TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Abhilash J A
505
2.4k
601k
How can do sorting in ListView WPF C#.Net ?
Dec 13 2016 11:55 PM
Hello everyone,
I have Listview looking like this,
<
ListView.View
>
<
GridView
>
<
GridView.ColumnHeaderContextMenu
>
<
ContextMenu
>
<
MenuItem
Header
=
"Ascending"
Click
=
"MenuItem_Click"
/>
<
MenuItem
Header
=
"Descending"
/>
</
ContextMenu
>
</
GridView.ColumnHeaderContextMenu
>
<
GridView.Columns
>
<
GridViewColumn
Width
=
"155px"
DisplayMemberBinding
=
"{Binding FirstName}"
Header
=
"User Name"
/>
</
GridView.Columns
>
</
GridView
>
</
ListView.View
>
What is the code for sorting listview inside
MenuItem_Click
?
private
void
MenuItem_Click(
object
sender, RoutedEventArgs e)
{
//What is the code for here?
}
Here is image,
Regards,
Abhilash.J.A
Reply
Answers (
2
)
MetroTabItem View Going out of Scope
Dispatcher processing has been suspended