Click here to Skip to main content
15,904,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to find rows in DataGridViewRow1(:grdfloopy1) that are the same az each other in same fileds and then show these 2 rows in DataGridViewRow2(:grdfloopy1).
plzzzzzzzzzzzzz help me soon:rose: :doh: :rose: :doh: :rose: :sigh:
Posted
Comments
Sandeep Mewara 19-Sep-10 2:08am    
Avoid text speak and try to be clear on what are you trying to do.

1 solution

what your going to need to do is

1. get the amount of rows in the grid

2. Loop through the number of rows ignoring the current row, comparing each column. If a match then do what ever is required.

personally I wouldn't go this way. I'd start by looking into Dataviews and its filtering capabilities

[edit] didn't understand the requirements at first due to scanning text speak[/edit]

Google shpws plenty of examples on this vb.net Comparing datasets for duplicate rows
 
Share this answer
 
v2

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