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.

ggc combobox cell

Thread ID:

Created:

Updated:

Platform:

Replies:

70257 Dec 4,2007 11:27 AM Dec 5,2007 06:55 AM Windows Forms 3
loading
Tags: GridControl
abc
Asked On December 4, 2007 11:27 AM

I am using syncfusion ggc. There are 2 columns "ColA","ColB".
ColA has combox cell with 2 fields "Enable" and "Disable"
ColB is editable cell with AutoComplete option.
When i open combobox of "ColA" and don't close it and click on "ColB" then my combobox
values gets replaced with "ColB" selected values.

I have attached a screenshot for refrence.

Now the Col[Enabled] combobox should have "Enabled" and "Disabled" option but if i don't close my combobox and click to the next cell the combobox values changes to next cell values ie Col[type] values which is "None"

I want that combobox values should not change.

I will be v thankfull if anyone could help me in this.



ErrorInSyncfusionGGC.zip

haneefm [Syncfusion]
Replied On December 4, 2007 01:50 PM

Hi Prabhjeet,

Please try calling the EndEdit method in TableControlCurrentCellCloseDropDown event and let me know if this helps.

void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
e.TableControl.CurrentCell.EndEdit();
e.TableControl.Table.TableDirty = true;
e.TableControl.Table.EndEdit();
}

Best regards,
Haneef


abc
Replied On December 5, 2007 12:59 AM

hi haneef,

thanks for a quick reply, but this is not working.
See this cannot work because the problem is that i have not closed the dropdown and i have clicked to another cell and the dropdown value gets changed to the another cell clicked value.

i will be v thankfull if u could give me a solution for this.

>Hi Prabhjeet,

Please try calling the EndEdit method in TableControlCurrentCellCloseDropDown event and let me know if this helps.

void gridGroupingControl1_TableControlCurrentCellCloseDropDown(object sender, GridTableControlPopupClosedEventArgs e)
{
e.TableControl.CurrentCell.EndEdit();
e.TableControl.Table.TableDirty = true;
e.TableControl.Table.EndEdit();
}

Best regards,
Haneef




Administrator [Syncfusion]
Replied On December 5, 2007 06:55 AM

Here is a sample that has a combobox in the first column. If the value in the first column is "Disabled", then rest of the row is disabled and cannot be clicked or changed. If the value is the first column is enabled, then the rest of that row can be edited.

The sample uses QueryCellStyleInfo to dynamically set style.Enabled as required for all values in the row. It uses TableControlCellMouseDown to force the dropdown to close if you click a disabled cell while the combobox is dropped. In TableControlCurrentCellCloseDropDown, it forces the values to be save immediately so you do not need to move off the row to see the change.



WindowsApplication14_2.zip

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.

;