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.

AutoSuggest type of cells in a grid

Thread ID:

Created:

Updated:

Platform:

Replies:

17460 Aug 9,2004 01:53 PM Aug 9,2004 02:40 PM Windows Forms 1
loading
Tags: GridControl
Madhavi Balusu
Asked On August 9, 2004 01:53 PM

Hi, I would like to have AutoSuggest type of autocomplete in my grid cells. How do I do this? Thanks!

Administrator [Syncfusion]
Replied On August 9, 2004 02:40 PM

You can use ComboBox celltypes to get AutoCompete behavior. If you do not want to see the buttons, you can set style.ShowButtons = Hide. If you want to do something else, you would probably have to derive a custom cell control. Here are a few of the custom cell type sample we ship. CellTypes\CalendarCells CellTypes\PictureBoxCells CellTypes\RadioButtonCells CellTypes\SliderCells Here is a forum thread on a Inplace RichText edit control. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=15023 I think you would want to derive from GridtextBoxCellModel and GridTextBoxCellRenderer. In teh renderer class, you would probably use OnKeyDown to try to implement your autocomplete. If you want to try this from a Grid event as opposed to deriving a cell control, you might be able to do something in CurrentCellValidateString. There you could try explicitly setting grid.CurrentCell.Renderer.Control.Text to the value you want to suggest based on the e.Text passed in.

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.

;