void form_RefreshDataEvent(object sender, ProductIdEventArgs e) { if (dataGridView1.CurrentRow == null) { return; } if (dataGridView1.CurrentRow.Cells["id"].Value == null) { return; } if (dataGridView1.CurrentRow.Cells["id"].Value.ToString().Equals(e.productid.ToString()) == false) { return; } dataGridView1.CurrentRow.Cells["latestquote"].Value = e.latestedprice; dataGridView1.CurrentRow.Cells["quotedollars"].Value = e.dollars; dataGridView1.CurrentRow.Cells["quotermb"].Value = e.rmb; dataGridView1.CurrentRow.Cells["rate"].Value = e.rate; dataGridView1.CurrentRow.Cells["quotedate"].Value = e.latequotedate; dataGridView1.CurrentRow.Cells["quotesupplier"].Value = e.company; dataGridView1.CurrentRow.Cells["linkman"].Value = e.customer; dataGridView1.CurrentRow.Cells["quoteweight"].Value = e.weight; dataGridView1.CurrentRow.Cells["quotequantity"].Value = e.quantity; }
void form_RefreshDataEvent(object sender, ProductIdEventArgs e) { if (dataGridView1.CurrentRow == null) { return; } if (dataGridView1.CurrentRow.Cells["id"].Value == null) { return; } if (dataGridView1.CurrentRow.Cells["id"].Value.ToString().Equals(e.productid.ToString()) == false) { return; } //dataGridView1.CurrentRow.Cells["latestquote"].Value = e.latestedprice; //dataGridView1.CurrentRow.Cells["quotedollars"].Value = e.dollars; dataGridView1.CurrentRow.Cells["spotrmb"].Value = e.rmb; // dataGridView1.CurrentRow.Cells["rate"].Value = e.rate; dataGridView1.CurrentRow.Cells["spotstoragedate"].Value = e.latequotedate; dataGridView1.CurrentRow.Cells["spotagent"].Value = e.company; dataGridView1.CurrentRow.Cells["spotlinkman"].Value = e.customer; }
void form_RefreshDataEvent(object sender, ProductIdEventArgs e) { //if (dataGridView1.CurrentRow == null) return; //if (dataGridView1.CurrentRow.Cells["id"].Value == null) return; //if( dataGridView1.CurrentRow.Cells["id"].Value .ToString().Equals( e.productid.ToString())==false ) return; //dataGridView1.CurrentRow.Cells["latestquote"].Value = e.latestedprice; //dataGridView1.CurrentRow.Cells["quotedollars"].Value = e.dollars; //dataGridView1.CurrentRow.Cells["quotermb"].Value = e.rmb; //dataGridView1.CurrentRow.Cells["rate"].Value = e.rate; //dataGridView1.CurrentRow.Cells["quotedate"].Value = e.latequotedate; }