Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello Every one ,

I try to make program .. which have to Gridview
one contains all Data in The Databasae and another is contains some of these data

and I try to compare between this Two GridView and show that gridview1 is contains the data in gridview2 by change the color of row in the gridview1...


please help me..
Posted

It might be easier to compare the underlying datasources (DataTables, Collection) for these gridviews and then changing the color of the appropriate rows (rather than comparing the gridview data directly).
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-Jun-11 14:39pm    
Absolutely. Great point, a 5.
--SA
Monjurul Habib 6-Jun-11 16:11pm    
nice advice, my 5.
Abhinav S 7-Jun-11 0:26am    
Thank you.
Abhinav S 7-Jun-11 0:26am    
Thank you SA.
Espen Harlinn 6-Jun-11 17:23pm    
Good idea, my 5
Abhinav S already provided the best way to fulfill your requirement. Following are some basic links to support you.

Comparing two collections for equality
How to compare two dataTables
How to compare two GridView rows
Compare 2 Gridview row values and write those who doesn't match

None of the above links are complete answer for your question. You can get some basic concepts and customize them according to your requirement.
 
Share this answer
 
Comments
Espen Harlinn 6-Jun-11 17:24pm    
Nice links, my 5
Monjurul Habib 7-Jun-11 2:52am    
Thank you.
Abhinav S 7-Jun-11 0:27am    
My 5. Some useful links here.
Monjurul Habib 7-Jun-11 2:53am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900