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
Dinesh Santhalingam
NA
737
370.3k
Find duplicate Rows and highlights in WPF
Aug 31 2017 8:37 AM
I have a datagrid view in my WPF Form.
I want to highlight the Row duplicates based on the LicenseName.
I bind a datatable to my Gridview as follows.
public
DataTable table =
new
DataTable();
private
void
showdetailsbtn_Click(object sender, RoutedEventArgs e)
{
table.Columns.Add(
"Subcategoryname"
, typeof(string));
table.Columns.Add(
"Totallicense"
, typeof(
int
));
table.Columns.Add(
"Inuse"
, typeof(
int
));
// Here we add five DataRows.
table.Rows.Add(
"Indocin"
, 10,10);
table.Rows.Add(
"Indocin"
, 20, 10);
table.Rows.Add(
"Hydralazine"
, 5,4);
table.Rows.Add(
"Combivent"
, 11,2);
table.Rows.Add(
"Dilantin"
, 6,3);
licensegridview.DataContext = table;
}
Please help me to solve my problem .
Reply
Answers (
2
)
Show Auto generated Serial No in Data Grid Column in WPF
Navigate pages in a frame when clicking on menu items