Click here to Skip to main content
15,916,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I have a question. I have two DataGridViews. In DataGridView1 I have a column named "Name" and in GridView2 I have a column named "Name" I execute a stored procedure and do an insert from grid1 to grid2.

How can I make the row from grid1 not visible if the same name can be found in grid2?

Thank You!!!
Posted

The best way, I would expect, would be to filter the data in your data source.
 
Share this answer
 
Well, your question is not quite clear, but other than filtering at UI level you can do the same at Database level. Fetch only those rows from database for Grid2 that is not in Grid1.
 
Share this answer
 

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