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


Glossary Item Box

Overload List

OverloadDescription
MutuallyExclusiveCheckBoxCellType Constructor(String)Creates a new ASP.NET AJAX extender mutually exclusive check box cell.  
MutuallyExclusiveCheckBoxCellType Constructor()Creates a new ASP.NET AJAX extender mutually exclusive check box cell.  

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.