I have solved the issue by getting the selected row from datagridview.
DataRow[] rowList = QuoteSalesItemSearch.dtBatch.Select("BatchItemID='" + ItemID + "'" + "and BatchNo='" + BatchNo + "'");
foreach (DataRow dr in rowList)
dr["SellQty"] = gvBatchDetails.Rows[e.RowIndex].Cells["SellQty"].Value;