Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > DataGridView celll into DataGridViewComboBoxCell
 

DataGridView celll into DataGridViewComboBoxCell

Hi All,
I'm using DataGridView, how can I make the cell I click on turn into DataGridViewComboBoxCell ?

Thanks
nz039926  Monday, June 22, 2009 4:44 PM
Hi nz039926,

Based on my experience, you may want the TextBoxCell to be Changed to ComboBoxCell when you clicked into it. If I get it right, you can create a DataGridViewComboBox column, and set its' DisplayStyle to Nothing.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Wednesday, June 24, 2009 12:28 PM
You can use the smart tag for the DataGridView and define the column as a ComboBox column.

Hope this helps.
www.insteptech.com
We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
DeborahK  Monday, June 22, 2009 4:48 PM
Hi nz039926,

Based on my experience, you may want the TextBoxCell to be Changed to ComboBoxCell when you clicked into it. If I get it right, you can create a DataGridViewComboBox column, and set its' DisplayStyle to Nothing.

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Wednesday, June 24, 2009 12:28 PM

You can use google to search for other answers

Custom Search

More Threads

• Make Enter Key Move to Next Column
• Nullable business object property
• How can add ListBox in DataGridView using C#.net (Window Application)?
• listBox takes a long time to update
• datagridview currentrowindex and select & Unselect
• Datagridview - Navigation, Keystroke handling & freezing column
• Is there an easy way to transpose a Datagridview?
• Disable the drill down feature in the datagrid
• Format DateTime value in DataGridView column header cell?
• Implementing a bindable indexed property