private void PositionValuesCombo() { if (m_bvList == null) { return; } HScrollProperties hprops = m_bvList.Scroller.HorizontalScroll; int iValueLocationHorizontalOffset = hprops.Value; Rectangle valueLocation = m_bvList.LocationOfCellInSelectedRow("Value"); m_valuesCombo.Location = new Point(valueLocation.Left + m_listPanel.Left + 2 - iValueLocationHorizontalOffset, valueLocation.Top + m_listPanel.Top - 3); m_valuesCombo.Size = new Size(valueLocation.Width + 1, valueLocation.Height + 4); if (!Controls.Contains(m_valuesCombo)) { Controls.Add(m_valuesCombo); } if (IsValuesComboBoxVisible(hprops)) { m_valuesCombo.Visible = true; m_valuesCombo.BringToFront(); } else { m_valuesCombo.Visible = false; m_valuesCombo.SendToBack(); } }