示例#1
0
        void OnDropDownOpened(object sender, EventArgs e)
        {
            m_RowWnd.ClearHighlight();
            Row ToEnsure = null;

            if (m_RowWnd.CurrSel != null)
            {
                m_RowWnd.CurrHighlight = m_RowWnd.CurrSel;
                ToEnsure = m_RowWnd.CurrSel;
            }
            else
            {
                ToEnsure = m_RowWnd.GetFirstRow();
            }

            m_RowWnd.RecalculateScrollBars();
            m_RowWnd.EnsureRowAtTopOfView(ToEnsure, true, true);
        }