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.
Syncfusion Feedback

Combobox default Item

Thread ID:

Created:

Updated:

Platform:

Replies:

65842 Jul 27,2007 01:53 PM UTC Jul 27,2007 11:08 PM UTC Windows Forms 1
loading
Tags: GridControl
Raj
Asked On July 27, 2007 01:53 PM UTC

Hi,

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

Hi,

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.
Regards,
Rajagopal

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.

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

;