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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom Drop down selects the text in the cell

Thread ID:





118721 Apr 3,2015 12:28 PM UTC Apr 7,2015 12:39 PM UTC WPF 1
Tags: GridControl
Basavaraj Angadi
Asked On April 3, 2015 12:28 PM UTC

 I am facing issue regarding custom drop down.

// Registering the cell model

this.grid.Model.CellModels.Add("CustomDropDown"new CustomeDropDownCellModel());


// Binding the celltype

var dropdown1 = this.grid.Model[7, 2];

dropdown1.CellType = "CustomDropDown";

dropdown1.ItemsSource = GenerateListBoxContent();

dropdown1.DisplayMember = "Text";

dropdown1.DropDownStyle = GridDropDownStyle.AutoComplete;

On changing or selecting the excel cell , by default selects the text in the cell.

I do not want cell text to be selected first time when cell is clicked or dropdown in changed.

Note : I need Autocomplete feature to working.

and also I noticed if dropdown1.CellType = "ComboBox"  above issue is not observed,

Its present only with CustomdropDown.

Any help is appreciated,

Please find the image attached for issue;

Attachment: CustomDropdown_f9d61ce5.zip

Deepak Kumar Nandagopal [Syncfusion]
Replied On April 7, 2015 12:39 PM UTC

Hi Basavaraj,

Thank you for contacting Syncfusion Support.

We analyzed your requirement and we have prepared a sample by overriding the close() method of theGridCellDropDownControlBase class in CustomeDropDown class in which we have selected the text after the dropdown is changed. Now, it has been modified according to your requirement as shown in the following code example:

Code Snippet:

public override void Close()


if (this.IsDropDownOpen)


if (this.IsDropDownOpen)


this.IsDropDownOpen = false;




Please find the modified sample from the below location for your reference.

Sample Location: http://www.syncfusion.com/downloads/support/forum/118721/CustomDropDown-1589232872.zip

Please let us know if this solution helps you.

Deepak Kumar N


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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