Compare DataGrid Column Values

W

Will Chamberlain

I just created an application that displays data from 2 sources in a
datagrid. There are 2 repeaters nested in the datagrid (probably not the
best idea). The whole purpose of this application is to visually display
side-by-side data from these 2 sources so that the end-user can track
changes. What I am wanting to do now is to highlight, bold, etc... rows
where values are different.

Layout (currently have):
Column1(product) / Column2 (Source A) / Column3 (Source B)

Sample data (currently):
hairgel / 29.95 / 29.95
toothbrush / 29.95 / 39.95

I'd like to have:
hairgel / 29.95 / 29.95
toothbrush / 29.95 / <strong>39.95</strong>

The <strong /> wrapped around the 39.95 would indicate to the end-user
that there has been a change in price. What would be the easiest way to
go about comparing the values? Is there a way to get a datagrid row
count and loop through comparing column 1 and column 2's values?

If this sounds too confusing I will be more than happy to clarify.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top