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. Image for the cookie policy date

AutoSuggest type of cells in a grid

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon