We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GBDB ComboBox Events

Thread ID:

Created:

Updated:

Platform:

Replies:

15118 Jun 11,2004 05:37 AM Jun 11,2004 07:28 AM Windows Forms 5
loading
Tags: GridControl
Kenneth Johnson
Asked On June 11, 2004 05:37 AM

I have a grid with 6 combobox columns. I have handled the CurrentCellChanged event. When I make a selection from the list on one of the comboboxes, a breakpoint I place at the start of the event handler is never hit. The other comboboxes hit the break point as expected. I also handle the CurrentCellShowingDropDown event and all comboboxes reach a break point there fine. Any thoughts and what could be preventing the CurrentCellChanged event from being fired from that one combobox? Thanks. Ken

Administrator [Syncfusion]
Replied On June 11, 2004 06:08 AM

Are you trying to dynamically set droplists and or cellstypes as you make selections in your comboboxes? If so, sometimes this might affect how cells behave. You might try the CurrentCellValidateString event to see if that one gets hit in all cases, and maybe you can use that event to do what you need.

Kenneth Johnson
Replied On June 11, 2004 06:15 AM

Yes, the lists are being loaded in the CurrentCellShowingDropDown event. I would like to set celltypes in QueryCellInfo, but that is on hold until this problem is worked out. I'll try your suggestion. Ken

Kenneth Johnson
Replied On June 11, 2004 06:47 AM

All cb's do hit the CurrentCellValidateString event, but it is hit twice. Once when a selection is made from the list and once when the cell loses the focus. In the CurrentCellChanged event I "blank" out the values in cells that depend on the value of the cb being revised. It would be not be effecient to do this twice for a cell revision. Ken

Administrator [Syncfusion]
Replied On June 11, 2004 07:13 AM

Trying to spot why the event is not being hit would require a working sample for us to work with. You probably could use some flags to avoid processing the same thing twice in CurrentCellValidateString.

Kenneth Johnson
Replied On June 11, 2004 07:28 AM

I found it. I was looking for something, anything, that would cause the one cb to be different. I noticed that it's list was not being loaded with "default" values when the grid is created. It was only being loaded in the show drop down event. Bind the list to some default data during the load and bingo! I've got a changed event working once again. Thanks again and sorry I wasted your time again. Programming would be a good gig if it weren't for the @*&@! users! Ken

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;