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

using special cell types in virtual grids

Thread ID:

Created:

Updated:

Platform:

Replies:

94829 Jun 4,2010 12:47 AM UTC Jun 4,2010 05:34 AM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On June 4, 2010 12:47 AM UTC

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 05:34 AM UTC

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;
}

Regards,
Jisha

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

;