Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

In C#, How can I jump to a cell in a datagridview when the value of that cell is equal to what I have entered in a cell in a new row?

$
0
0

Hi guys,

Here is my scenario. I have a datargridview which has columns Part Number, Qty, Description and Product type.

when I need to enter a new part number, if it doesn't exists already in the dgv, it is added along with the other details qty, description etc. However if the part exists in the gridview it disallows the new duplicate entry. ( this is achieved through sql server constraints and works fine..)

My requirement is, that when the  new part number I type in the last row of the grid already exists, I need to jump to the cell where the part number already resides, where I can just update the qty.

Appreciate any help in achieving this.

Thanks


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>