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

Need to get an Index in Combo...

Thread ID:

Created:

Updated:

Platform:

Replies:

47588 Aug 8,2006 05:12 PM UTC Aug 9,2006 06:33 AM UTC Windows Forms 1
loading
Tags: GridControl
Sathish Chandran
Asked On August 8, 2006 05:12 PM UTC

Hi,

I have a combo celltype and I assigned a datasource to it. Once the form loaded with the combo, I need to point to a particular index in the combo. How should I do it.

Please help me out.

Thanks & Regards,
Sathish.

Administrator [Syncfusion]
Replied On August 9, 2006 06:33 AM UTC

Hi Sathish,

To assign the value in a Combobox cell, you need to set the cellvalue property of the Combobox cell in grid. Here is a sample code snippet.

this.gridControl1[4, 2].CellType = "ComboBox";
this.gridControl1[4, 2].ChoiceList = sc;
this.gridControl1[4, 2].CellValue = "Two";

Here is a sample.

Thanks,
Srividhya

ComboBoxCell.zip

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

;