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

Combobox default Item

Thread ID:





65842 Jul 27,2007 01:53 PM UTC Jul 27,2007 11:08 PM UTC WinForms 1
Tags: GridControl
Asked On July 27, 2007 01:53 PM UTC


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 11:08 PM UTC


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.

Please sign in to access our forum

or the page will be automatically redirected to 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