473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DataGrid with ComboBoxes

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
4 1274
RFickling wrote:
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.
Nov 16 '05 #2
> DataGridComboBoxColumn class from the MSDN article.

Hi!

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

Thanks !
Nov 16 '05 #3
RFickling wrote:

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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


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
Nov 16 '05 #4
There are a number of good articles on the subject if you search MSDN
for DataGrid. The one which I used to do this is
http://msdn.microsoft.com/msdnmag/is.../08/DataGrids/.

HTH
Royce


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jaYPee | last post by:
i have search a lot of newsgroup and some website to find a sample for multi column combobox in datagrid but no luck. there are so many sample i found but it is not located in datagrid. i would...
12
by: Sam | last post by:
Hi, Do you know where I can find a simple example of what I'm trying to achieve : I have a dataset filled with two columns from a table of my database. Then the dataset is used to fill a...
2
by: Reidar | last post by:
I am making a datagrid with one table. In this datagrid I change som columns from textboxes to comboboxes. The comboboxes has datasource from another table, displaymember is the textfield from...
1
by: R.Rafii | last post by:
Hi all, I am using Visual Studio 2005 and Visual basic. I've created a form with two ComboBoxes and a DataGrid I binned the ComboBoxes to a table on my remote SQL2005 server What I want to do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.