private void txtRAA001_EditValueChanged(object sender, EventArgs e) { txtRAA003.Text = txtRAA015.Text = txtDEA002.Text = txtDEA057.Text = txtRAA018.Text = txtIBB981.Text = txtIBB980.Text = txtIBB961.Text = txtIBB005.Text = txtDFA002.Text = string.Empty; if (txtRAA001.EditValue == null) { return; } if (string.IsNullOrEmpty(txtRAA001.EditValue.ToString( ))) { return; } if (tableQuery.Select("IBB001='" + txtRAA001.EditValue + "'").Length < 1) { return; } DataRow row = tableQuery.Select("IBB001='" + txtRAA001.EditValue + "'") [0]; if (row == null) { return; } txtRAA003.Text = row ["IBA003"].ToString( ); txtDFA002.Text = row ["DFA002"].ToString( ); tableOrder = _bll.getTableQueryPin(txtRAA001.EditValue.ToString( ), strW); txtDEL018.Properties.DataSource = tableOrder; txtDEL018.Properties.DisplayMember = "IBB002"; txtDEL018.Properties.ValueMember = "IBB002"; }
private void txtRAA001_EditValueChanged(object sender, EventArgs e) { //DataRow row = gridLookUpEdit1View . GetFocusedDataRow ( ); //if ( row == null ) //{ if (txtRAA001.EditValue == null) { return; } if (tableQuery.Select("IBB001='" + txtRAA001.EditValue + "'").Length < 1) { return; } DataRow row = tableQuery.Select("IBB001='" + txtRAA001.EditValue + "'") [0]; if (row == null) { return; } //} if (txtRAA001.EditValue == null) { return; } if (string.IsNullOrEmpty(txtRAA001.EditValue.ToString( ))) { return; } if (!string.IsNullOrEmpty(row ["IBB001"].ToString( )) && row ["IBB001"].ToString( ).Equals(txtRAA001.EditValue.ToString( ))) { txtRAA003.Text = row ["IBA003"].ToString( ); txtDFA002.Text = row ["DFA002"].ToString( ); tableOrder = _bll.getTableQueryPin(txtRAA001.EditValue.ToString( )); txtDEL018.Properties.DataSource = tableOrder; txtDEL018.Properties.DisplayMember = "IBB002"; txtDEL018.Properties.ValueMember = "IBB002"; } }