DataGrid with ComboBoxes

  • Thread starter Thread starter RFickling
  • Start date Start date
R

RFickling

Hi,

I have implemented a DataGrid with ComboBoxes in it using the
DataGridComboBoxColumn class from the MSDN article. My problem is that I
would like to make the combobox disappear when an item is selected in
the list, showing only the selected item's value in the grid cell.
Currently, the combobox doesn't disappear until it loses focus. How can
this be done?

Thanks,
Royce
 
RFickling said:
I have implemented a DataGrid with ComboBoxes in it using the
DataGridComboBoxColumn class from the MSDN article. My problem is that I
would like to make the combobox disappear when an item is selected in
the list, showing only the selected item's value in the grid cell.
Currently, the combobox doesn't disappear until it loses focus. How can
this be done?

Add a handler to the ComboBox's SelectionChangeCommitted event... the
DataGridComboBoxColumn on the SyncFusion Windows Forms FAQ page does
this, although not for the same reason.
 
DataGridComboBoxColumn class from the MSDN article.

Hi!

Can you post the link to that article? I'm having trouble finding it.

Thanks !
 
RFickling said:
Hi,

I have implemented a DataGrid with ComboBoxes in it using the
DataGridComboBoxColumn class from the MSDN article. My problem is that I
would like to make the combobox disappear when an item is selected in
the list, showing only the selected item's value in the grid cell.
Currently, the combobox doesn't disappear until it loses focus. How can
this be done?

Thanks,
Royce

This article implements a combobox datagrid, and the combo boxes are only
visible when the cell is active:

http://www.csharphelp.com/archives/archive151.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top