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.

Combobox default Item

Thread ID:





65842 Jul 27,2007 09:53 AM Jul 27,2007 07:08 PM Windows Forms 1
Tags: GridControl
Asked On July 27, 2007 09:53 AM


In the grid one of the celltype is combo box. I just need to set the first item as the default item after loading the combobox items. Any pointers to the code

Thanks in advance,

Rajagopal [Syncfusion]
Replied On July 27, 2007 07:08 PM


You could set the Text property of the GridStyleInfo object for the cell to be some value in the combobox items. Try code like,

this.gridControl1[row, col].CellType = "ComboBox";
this.gridControl1[row, col].ChoiceList = items;
this.gridControl1[row, col].Text = items[0].ToString();

Let us know if this helps.

Thanks for your interest in Syncfusion Products.


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.