Example #1
0
        static void OnSortIndexChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            GridColumn column = (GridColumn)obj;

            if (column.View == null)
            {
                return;
            }
            GridControl grid = (GridControl)column.View.DataControl;
            AsynchronousDataLoadingBehavior bhvr = GetAsynchronousDataLoadingBehavior(grid);

            if (!bhvr.IsGridEnabled)
            {
                return;
            }
            column.SortIndex = (int)e.NewValue;
        }
Example #2
0
 static void SetAsynchronousDataLoadingBehavior(GridControl obj, AsynchronousDataLoadingBehavior value)
 {
     obj.SetValue(AsynchronousDataLoadingBehaviorProperty, value);
 }