How can i compare two datagridview values ? I'm trying to check if Datagridview1 subjectcode is Exist in Datagridview2
EDIT:
It will happen when user click a button. Selected row will be added in datagridview2 list
if datagridview1 subcode = datagridview2 subcode then
datagridview1.row color = gray.
Datagridview1 ( This is a subject list )
Datagridview2


Button.Clickevent? Is it possible that more than one cell has the same value in the second DataGridView? If so, what should happen? - JimiTrue(meaning already copied) when a subject has been added to DGV2. So you can't add it again if this column's value isTrue. - Jimi