コード例 #1
0
ファイル: Sorting.cs プロジェクト: syncfusion/xamarin-demos
 public override void Destroy()
 {
     sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
     sfGrid.Dispose();
     sfGrid                    = null;
     allowsorting              = null;
     allowtristatesorting      = null;
     allowMultiSorting         = null;
     allowsortingforSupplierID = null;
     viewModel                 = null;
 }
コード例 #2
0
		public override Android.Views.View GetSampleContent (Android.Content.Context context)
		{
			sfGrid = new SfDataGrid (context);
			viewModel = new SortingViewModel ();
			viewModel.SetRowstoGenerate (100);
			sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
			sfGrid.ItemsSource = viewModel.Products;
			sfGrid.AllowSorting = true;
			sfGrid.AllowTriStateSorting = true;
			sfGrid.AlternatingRowColor = Color.Rgb (206, 206, 206);
			this.sfGrid.SortColumnDescriptions.Add (new SortColumnDescription (){ ColumnName ="ProductID", SortDirection = Syncfusion.Linq.ListSortDirection.Descending });
			return sfGrid;
		}
コード例 #3
0
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid    = new SfDataGrid(context);
     viewModel = new SortingViewModel();
     viewModel.SetRowstoGenerate(100);
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource           = viewModel.Products;
     sfGrid.AllowSorting          = true;
     sfGrid.AllowTriStateSorting  = true;
     sfGrid.AlternatingRowColor   = Color.Rgb(206, 206, 206);
     this.sfGrid.SortColumnDescriptions.Add(new SortColumnDescription()
     {
         ColumnName = "ProductID", SortDirection = Syncfusion.Linq.ListSortDirection.Descending
     });
     return(sfGrid);
 }
コード例 #4
0
ファイル: Sorting.cs プロジェクト: syncfusion/xamarin-demos
 public override Android.Views.View GetSampleContent(Android.Content.Context context)
 {
     sfGrid    = new SfDataGrid(context);
     viewModel = new SortingViewModel();
     viewModel.SetRowstoGenerate(100);
     sfGrid.AutoGeneratingColumn += GridAutoGenerateColumns;
     sfGrid.ItemsSource           = viewModel.Products;
     sfGrid.SelectionMode         = SelectionMode.Single;
     sfGrid.AllowSorting          = true;
     sfGrid.AllowTriStateSorting  = true;
     sfGrid.Alpha = 1.0f;
     sfGrid.VerticalOverScrollMode = VerticalOverScrollMode.None;
     this.sfGrid.SortColumnDescriptions.Add(new SortColumnDescription()
     {
         ColumnName = "ProductID", SortDirection = ListSortDirection.Descending
     });
     return(sfGrid);
 }
コード例 #5
0
		public override void Destroy ()
		{
			sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns;
			sfGrid.Dispose ();
			sfGrid = null;
			allowsorting = null;
			allowtristatesorting = null;
			allowsortingforProductID = null;
			allowsortingforSupplierID = null;
			viewModel = null;
		}