internal void StartEditingCell() { if (m_CurrentCol != -1 && m_CurrentRow != null) { if (m_CurrentRow.Cells[m_CurrentCol] == null) { return; } if (m_CurrentRow.Cells[m_CurrentCol].Value != null) { this.Text = m_CurrentRow.Cells[m_CurrentCol].Value.ToString(); } else { this.Text = ""; } this.Size = new Size(m_CurrentRow.Cells[m_CurrentCol].Width, m_CurrentRow.Cells[m_CurrentCol].Height); this.Location = m_Parent.GetCellLocation(m_CurrentRow.Cells[m_CurrentCol]); Show(); Focus(); SelectAll(); } }