virusisfound 0 Junior Poster

Hi,

I am working in C# windows application. and I want to compare datagridview value before add the row in dgv.
dgv is non editable,i am programitaclly adding row in dgv.
like:
dgv_data.Rows.Add(txt_id.Text, txt_itemname.Text, txt_qut.Text, txt_prc.Text,tot);//here tot is for calculate total amount(qut*prc)

now i want to comare txt_id value with grid id.
if the id is already present in grid then it add the qut=qut+1; and update dgv only for that paticular row.