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.
Syncfusion Feedback

Cancelling ComboBox selection in GridControl

Thread ID:

Created:

Updated:

Platform:

Replies:

7092 Sep 11,2003 05:01 PM UTC Sep 12,2003 09:33 AM UTC Windows Forms 2
loading
Tags: GridControl
Paul Laudeman
Asked On September 11, 2003 05:01 PM UTC

Hello, I have a ComboBox in my unbound GridControl and I'd like to have the opportunity to cancel a selection made by the user. The reason why I want to do this is because I have a combobox that dynamically adds fields on my grid depending on the selection. If the user accidentally selects something I'd like to prompt the user to confirm and give them the ability to cancel the selection if necessary. Suggestions? Thanks! -Paul

Administrator [Syncfusion]
Replied On September 11, 2003 06:55 PM UTC

CurrentCellValidating is a cancelable event that fires when the user triws to leave any modified cell. So you could use that to catch a change. To get the new value, you use grid.CurrentCell.Renderer.ControlText. If you want to catch each change in the cell (without wating for the user to confirm the change by leaving the cell), then you can use CurrentCellValidateString. There e.Text has the value.

Paul Laudeman
Replied On September 12, 2003 09:33 AM UTC

Excellent! That's exactly what I was looking for - thanks Clay! > CurrentCellValidating is a cancelable event that fires when the user triws to leave any modified cell. So you could use that to catch a change. To get the new value, you use grid.CurrentCell.Renderer.ControlText. > > If you want to catch each change in the cell (without wating for the user to confirm the change by leaving the cell), then you can use CurrentCellValidateString. There e.Text has the value.

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.

Warning Icon 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.Close Icon

;