I have a GridView which has two textboxes in it.I need to compare the values present inside the textBox,for which I need to get the row index of the selected textbox.Can anyone help me out in this?

Or is there a alternate solution for making such comparison?

Thanks in advance

Can't you just pull the row index off of the current cell with dataGridView1.CurrentCell.RowIndex ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.