void dataGridViewX1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { if (dataGridViewX1.Columns[e.ColumnIndex].Name.ToLower() == "remark") { var TempObj = dataGridViewX1.Rows[e.RowIndex].Cells["remark"].Value; string Remark = TempObj == null ? string.Empty : TempObj.ToString(); string ERP_ID = dataGridViewX1.Rows[e.RowIndex].Cells["ERP_Id"].Value.ToString(); soso.syntoolSoapClient bll = new soso.syntoolSoapClient(); bll.SetTag_2(ERP_ID, iden, Remark, Login.authKey); } }
private void dataGridViewX1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == dataGridViewX1.Columns["Column2"].Index) { soso.syntoolSoapClient bll = new soso.syntoolSoapClient(); bll.SetTag(dataGridViewX1.Rows[e.RowIndex].Cells["ID"].Value.ToString(), iden, dataGridViewX1.Rows[e.RowIndex].Cells["Column2"].Value.ToString(), Login.authKey); } if (e.ColumnIndex == dataGridViewX1.Columns["remark"].Index) { soso.syntoolSoapClient bll = new soso.syntoolSoapClient(); bll.SetTag_2(dataGridViewX1.Rows[e.RowIndex].Cells["ID"].Value.ToString(), iden, dataGridViewX1.Rows[e.RowIndex].Cells["remark"].Value.ToString(), Login.authKey); } }