Click here to Skip to main content
13,350,486 members (63,893 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi Everyone,

I want to display the combo box inside the grid cell's when i double clicked on the cell. After the combo box open, on click the combo i want to display a new grid.

i have tried some code..

private ComboBox combo = new ComboBox();
       private void PONewMain_Load(object sender, EventArgs e)

           string s = cmb_purchase.Text;


private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)

this.combo.Location = this.dataGridView1.GetCellDisplayRectangle(e.ColumnIndex, e.RowIndex, true).Location;

combo.Text = dataGridView1.CurrentRow.Cells[0].Value.ToString();


It displaying the combo box, but i dont know how to set a event on combo mouseclick in the grid combo..

Please help

Thanks in advance
Posted 25-Feb-13 21:42pm
Updated 25-Feb-13 21:43pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 26 Feb 2013
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100