Adds a filter column definition to the row filter with the specified list behavior.
Syntax
Parameters
- viewColumnIndex
- Column index
- listBehavior
- FilterListBehavior object that contains the list behavior
Example
This example sets a row filter.
C# | Copy Code |
---|
FarPoint.Web.Spread.NamedStyle instyle = new FarPoint.Web.Spread.NamedStyle();
FarPoint.Web.Spread.NamedStyle outstyle = new FarPoint.Web.Spread.NamedStyle();
instyle.BackColor = Color.Yellow;
outstyle.BackColor = Color.Aquamarine;
FarPoint.Web.Spread.StyleRowFilter sf = new FarPoint.Web.Spread.StyleRowFilter(FpSpread1.Sheets[0], instyle, outstyle);
sf.AddColumn(new FarPoint.Web.Spread.FilterColumnDefinition(1));
FpSpread1.Sheets[0].RowFilter = sf;
|
Visual Basic | Copy Code |
---|
Dim instyle As New FarPoint.Web.Spread.NamedStyle()
Dim outstyle As New FarPoint.Web.Spread.NamedStyle()
instyle.BackColor = Color.Yellow
outstyle.BackColor = Color.Aquamarine
Dim sf As New FarPoint.Web.Spread.StyleRowFilter(FpSpread1.Sheets(0), instyle, outstyle)
sf.AddColumn(New FarPoint.Web.Spread.FilterColumnDefinition(1))
FpSpread1.Sheets(0).RowFilter = sf
|
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