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

Choice List

Thread ID:

Created:

Updated:

Platform:

Replies:

92933 Feb 12,2010 10:09 PM UTC Feb 18,2010 09:11 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
sireesha
Asked On February 12, 2010 10:09 PM UTC

What is the advantage of using
grid.Model[cc.RowIndex, cc.ColumnIndex].ChoiceList ?

Can you send some links on how to use this ?

Thanks,
Sireesha




Ranjeet Kumar [Syncfusion]
Replied On February 18, 2010 09:11 AM UTC

Hi Sireesha,

Thanks for your interest in Syncfusion Products.

The sample attached contains a GridControl in which a cell with collumnindex 2 and rowindex 2 has been declared as ComboBox type.

CurrentCellActivated event has been handled to associate the StringCollection class object as data source to comboBox with the help of Model class which manages the data to be displayed in the grid. ChoiceList gets or sets items to be displayed in the dropdown list.


// Event :
this.gridControl1.CurrentCellActivated+=new EventHandler(gridControl1_CurrentCellActivated);

// Handler
GridCurrentCell cell = this.gridControl1.CurrentCell;

if (cell.RowIndex >= 1 && cell.ColIndex >= 1)
{
this.gridControl1.Model[cell.RowIndex, cell.ColIndex].ChoiceList = language;
}


Please find the sample attached from link mentioned below :

http://help.syncfusion.com/support/samples/Grid.Windows/6.4.0.15/(GridControl_ComboBox_ChoiceList)F92933.zip

You may also refer to the Dash Board Samples from link shown below.

Essential Studio - Windows Forms
2009 Volume 4
Essential studio Samples
Grid Samples -> Cell Types -> Combo Box Cell Demo


Regards,
Ranjeet.

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

;