FarPoint.Web.Spread 名前空間 > Column クラス : SortIndicator プロパティ |
'Declaration
Public Property SortIndicator As SortIndicator
public SortIndicator SortIndicator {get; set;}
ソートインジケータは、データがソートされた後に、データのソート列のみに表示されます。
private void Page_Load(object sender, System.EventArgs e) { if (this.IsPostBack) return; FarPoint.Web.Spread.Column mycol; mycol = FpSpread1.ActiveSheetView.Columns[1]; FpSpread1.ActiveSheetView.SetValue(0, 1, "Alignment"); FpSpread1.ActiveSheetView.SetValue(1, 1, "CarbAdjust"); FpSpread1.ActiveSheetView.SetValue(2, 1, "Brakes"); mycol.SortIndicator = FarPoint.Web.Spread.Model.SortIndicator.Descending; } private void Button1_Click(object sender, System.EventArgs e) { FpSpread1.ActiveSheetView.SortRows(1, true, true); }
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If Me.IsPostBack Then Return Dim mycol As FarPoint.Web.Spread.Column mycol = FpSpread1.ActiveSheetView.Columns(1) FpSpread1.ActiveSheetView.SetValue(0, 1, "Alignment") FpSpread1.ActiveSheetView.SetValue(1, 1, "CarbAdjust") FpSpread1.ActiveSheetView.SetValue(2, 1, "Brakes") mycol.SortIndicator = FarPoint.Web.Spread.Model.SortIndicator.Descending End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FpSpread1.ActiveSheetView.SortRows(1, True, True) End Sub