Spread for ASP.NET 7.0 Product Documentation
Key Property
See Also  Example Support Options
FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > MutuallyExclusiveCheckBoxCellType Class : Key Property


Glossary Item Box

Gets or sets the key to associate mutually exclusive check boxes.

Syntax

Visual Basic (Declaration) 
Public Property Key As String
Visual Basic (Usage)Copy Code
Dim instance As MutuallyExclusiveCheckBoxCellType
Dim value As String
 
instance.Key = value
 
value = instance.Key
C# 
public string Key {get; set;}

Property Value

String containing the key

Remarks

This property determines the unique key to use to associate checkboxes. This key does not respect INamingContainer renaming.

Example

This example creates four check boxes that uncheck themselves if another is checked.
C#Copy Code
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m.Text = "One";
m.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[0, 0].CellType = m;
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m1 = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m1.Text = "Two";
m1.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[0, 1].CellType = m1;
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m11 = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m11.Text = "Three";
m11.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[1, 0].CellType = m11;
FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType m12 = new FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType();
m12.Text = "Four";
m12.Key = "Key1";
FpSpread1.ActiveSheetView.Cells[1, 1].CellType = m12;
Visual BasicCopy Code
Dim m As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m.Text = "One"
m.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = m

Dim m1 As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m1.Text = "Two"
m1.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(0, 1).CellType = m1

Dim m11 As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m11.Text = "Three"
m11.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(1, 0).CellType = m11

Dim m12 As New FarPoint.Web.Spread.Extender.MutuallyExclusiveCheckBoxCellType
m12.Text = "Four"
m12.Key = "Key1"
FpSpread1.ActiveSheetView.Cells(1, 1).CellType = m12

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.