private void grdLeft_ColumnResized(object sender, ColumnResizedEventArgs e) { if (e.ColumnIndex < grdRight.Columns.Count) { grdRight.Columns[e.ColumnIndex].Width = e.UpdatedWidth; grdRight.RefreshLayout(); grdRight.Refresh(); } }
/// <summary> /// Move the sort indicator when a grids column is resized. /// </summary> /// <param name="sender"></param> /// <param name="columnResizedEventArgs"></param> private void OnColumnResized(object sender, ColumnResizedEventArgs columnResizedEventArgs) { PositionSortIndicator(CurrentColumn); }