BCGControlBar Library for .NET
ComboBoxCell Class
Members 




Implements combo box cell.
Object Model
ComboBoxCell ClassGridColumn ClassGridDataItem ClassGridDataRow ClassGridCellVisualStyle Class
Syntax
'Declaration
 
Public Class ComboBoxCell 
   Inherits TextCell
'Usage
 
Dim instance As ComboBoxCell
public class ComboBoxCell : TextCell 
public __gc class ComboBoxCell : public TextCell 
public ref class ComboBoxCell : public TextCell 
Remarks
In the above code the data stored in ItemData is represented by GridDataItemOptionList class. The initial selection is set to 1, so when the
Example
The following code illustrates how to create a combo box data item.
C# Copy Code
item = new GridDataItem();
item.DataType = GridDataType.ComboBox;
GridDataItemOptionList options =
new GridDataItemOptionList();
options.HideDropDownButton = true;
item.ItemData = options;

options.ItemCollection.Add(
"Line 1");
options.ItemCollection.Add(
"Line 2");
options.SelectionIndex = 1;

row.ItemCollection.Add(item);
Inheritance Hierarchy

System.Object
   BCGSoft.Controls.Grid.Cell
      BCGSoft.Controls.Grid.TextCell
         BCGSoft.Controls.Grid.ComboBoxCell

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ComboBoxCell Members
BCGSoft.Controls.Grid Namespace

Send Feedback