Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagrid duplicates

Status
Not open for further replies.

shiggyshag

Programmer
Dec 14, 2001
227
0
0
GB
Hi

I have a datagrid that I fill from an SQL table.
What I need to do is highlight any duplicate rows on surname so if there are two Smith's they both would be highlighted say red.

Any Ideas on this Please

Cheers
 
Hi

Had a look but not sure how I can use this.

Cheers
 
Well, a really simply way would be to store each surname in a string, array, datatable, dataview, collection etc then for each surname that appears more than once, use the conditional formatting like in the example above.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top