public override void Destroy() { sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns; sfGrid.Dispose(); sfGrid = null; allowsorting = null; allowtristatesorting = null; allowMultiSorting = null; allowsortingforSupplierID = null; viewModel = null; }
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; }
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); }
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); }
public override void Destroy () { sfGrid.AutoGeneratingColumn -= GridAutoGenerateColumns; sfGrid.Dispose (); sfGrid = null; allowsorting = null; allowtristatesorting = null; allowsortingforProductID = null; allowsortingforSupplierID = null; viewModel = null; }