Example #1
0
        protected override void OnSortingRangeRows(SortRangeRowsEventArgs e)
        {
            base.OnSortingRangeRows(e);

            if (DataSource == null || DataSource.AllowSort == false)
            {
                return;
            }
            var prop = this.Columns[e.KeyColumn].PropertyName;

            DataSource.ApplySort(prop, e.Ascending);

            // force redraw
            this.Invalidate();
        }
Example #2
0
		protected override void OnSortingRangeRows(SortRangeRowsEventArgs e)
		{
			base.OnSortingRangeRows (e);
			
			if (DataSource == null || DataSource.AllowSort == false)
				return;
			var prop = this.Columns[e.KeyColumn].PropertyName;
			DataSource.ApplySort(prop, e.Ascending);
			
			// force redraw
			this.Invalidate();
		}
 private void dataGrid_SortedRangeRows(object sender, SortRangeRowsEventArgs e)
 {
     __cSortRangeRowEvent = e;
 }