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.

drop down help

Thread ID:

Created:

Updated:

Platform:

Replies:

61017 May 16,2007 03:04 PM May 17,2007 07:47 PM Windows Forms 3
loading
Tags: GridControl
dinesh upreti
Asked On May 16, 2007 03:04 PM

hi,
i have added a colum with drop dowm cell type as.

dgSellingPrice.TableDescriptor.Columns[Constants.PRICE_VATRATE_GRIDCOLUMN].Appearance.AnyCell.ChoiceList = s;

The problem is i am able to type in any thing on the dropdown cell. I want that the user should be forced to pick up data from the drop down options only.

Please help.

haneefm [Syncfusion]
Replied On May 16, 2007 04:17 PM

Hi Dinesh,

You can try setting the DropDownStyle property to GridDropDownStyle.Exclusive.

dgSellingPrice.TableDescriptor.Columns[Constants.PRICE_VATRATE_GRIDCOLUMN].Appearance.AnyCell.DropDownStyle=GridDropDownStyle.Exclusive

Best regards,
Haneef

dinesh upreti
Replied On May 17, 2007 06:36 AM

Thanks, it worked,

but the problem now is that when i change the value in the drop down and try to tab out or click any where else in grid, the row remains in the edit mode. so it is not commiting the changes i have done to the cell.
what can be the solution for this.

Thanks

Dinesh

>hi,
i have added a colum with drop dowm cell type as.

dgSellingPrice.TableDescriptor.Columns[Constants.PRICE_VATRATE_GRIDCOLUMN].Appearance.AnyCell.ChoiceList = s;

The problem is i am able to type in any thing on the dropdown cell. I want that the user should be forced to pick up data from the drop down options only.

Please help.

haneefm [Syncfusion]
Replied On May 17, 2007 07:47 PM

Hi Dinesh,

To push all data to underlying datasource for every cell movement, you need to call in Table.EndEdit Method(before calling this , you need to call the CurrentCell''s Edit method) in the TableControlCurrentCellMoving event of the grid. Here is a code snippet.

e.TableControl.CurrentCell.EndEdit(); //saves the currentcell
e.TableControl.Table.EndEdit();

Regards,
Haneef

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.

;