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

Need to get an Index in Combo...

Thread ID:





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


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,

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.




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