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. Image for the cookie policy date
close icon

Choice List

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




1 Reply

RK Ranjeet Kumar Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon