Spread for ASP.NET 11 Product Documentation
AutoPostBack Property (ComboBoxCellType)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ComboBoxCellType Class : AutoPostBack Property
Gets or sets whether the control should automatically post back when clicked. This property only has an effect when the ShowButton property is true.
Syntax
'Declaration
 
Public Property AutoPostBack As Boolean
'Usage
 
Dim instance As ComboBoxCellType
Dim value As Boolean
 
instance.AutoPostBack = value
 
value = instance.AutoPostBack
public bool AutoPostBack {get; set;}

Property Value

Boolean: true for automatic postback; false otherwise
Remarks

This property determines whether the component automatically posts back data to the server based on interaction by the user.

This property has effect only if the ShowButton property is true.

Example
This example uses a combo box to force a postback.
FarPoint.Web.Spread.ComboBoxCellType c = new FarPoint.Web.Spread.ComboBoxCellType(new String[] {"One", "Two", "Three"});
c.AutoPostBack = true;
c.ShowButton = true; 
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = c;
Dim c As New FarPoint.Web.Spread.ComboBoxCellType(New String() {"One", "Two", "Three"})
c.AutoPostBack = True
c.ShowButton = True 
FpSpread1.ActiveSheetView.Cells(0, 0).CellType = c
See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members