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.

using special cell types in virtual grids

Thread ID:





94829 Jun 3,2010 08:47 PM Jun 4,2010 01:34 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On June 3, 2010 08:47 PM

Is there a method for using ComboBox or other celltypes in virtual grid that I am using as an input front end to an excel workbook? (So that user selections are automatically reflected in the worksheet associated with the grid?)

Jisha Joy [Syncfusion]
Replied On June 4, 2010 01:34 AM

Hi Jan,

THank you for using Syncfusion products.

In VirtualGrid you need to handle QueryCellInfo to set celltype in Virtual GridControl. See the code:

private void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
//Other code

if(e.RowIndex > 0 && e.ColIndex > 0 && e.ColIndex <= 5)
e.Style.BackColor = Color.AliceBlue;
e.Style.CellType = "ComboBox";
e.Style.ChoiceList = sc;
e.Style.DropDownStyle = GridDropDownStyle.Exclusive;
e.Style.ShowButtons = GridShowButtons.Hide;


//Other code
e.Handled = true;



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.