Click here to Skip to main content
14,644,614 members
Rate this:
Please Sign up or sign in to 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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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).
   
Comments
   
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
   
Thank you, Espen.
--SA
Abhinav S 7-Jun-11 0:26am
   
Thank you Espen.
Rate this:
Please Sign up or sign in to vote.

Solution 2

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.
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100