Spread for ASP.NET 9.0 Product Documentation
MutuallyExclusiveCheckBoxCellType Constructor
Example 


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.
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;
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

MutuallyExclusiveCheckBoxCellType Class
MutuallyExclusiveCheckBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.