예제 #1
0
 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();
     }
 }
예제 #2
0
 /// <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);
 }