// public void Draw(Graphics dc) { foreach (GridViewColumn obj in m_List) { obj.Draw(dc); } if (m_CmbItem.Visible) { GridViewComboItem cmb = (GridViewComboItem)m_CmbItem.Tag; m_CmbItem.Location = cmb.Control.Location; m_CmbItem.Size = new Size(cmb.Control.Width, 0); } // DrawLine(dc); }
// void OnSelectedIndexChanged(object sender, EventArgs e) { GridViewComboItem cmb = (GridViewComboItem)m_CmbItem.Tag; if (cmb != null) { if (cmb.Control.Text != m_CmbItem.Text) { cmb.Control.Text = m_CmbItem.Text; OnModify(cmb, e); } } //NotifyObserver(e); }
// private void ShowCombo(GridViewComboItem item) { m_CmbItem.Tag = item; m_CmbItem.Items.Clear(); m_CmbItem.Visible = true; m_CmbItem.Location = item.Control.Location; m_CmbItem.Size = new Size(item.Control.Width, 0); //item.SetControl(m_CmbItem); if (item.m_Data != null) { foreach (String str in item.m_Data) { m_CmbItem.Items.Add(str); } } m_CmbItem.Text = item.Control.Text; m_CmbItem.Focus(); m_CmbItem.Show(); }