Hi,

I am working on a tool for my project that will compare two contents pasted in two different datagridviews. I have previously created the same in VB6.0 and it worked fine. I am a beginner of .net and I dnt know how to get each cell values from datagridview and compare it with the other.

Can any one help me with this by providing me sample code of getting the cell values from each datagridview and compare it with another? it will be highly helpful for my project.

Thanks in advance,
Karthik

You can access the rows and columns as follows

DataGridView1.Rows(rownum).Cells(colnum).Value