Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1320
Disabling Drag & Drop into GroupByBox in WinGrid
posted

Hi to all.  I am controlling addition of columns to the GroupByBox programmatically, and I want to have the GroupByBox displayed for user information and for sorting purposes only.  I do not wish for users to be able to drag columns into the GroupByBox, as grouping on some of the columns is not meaningful. 

Is there any way that I can disable the ability to drop columns into the GroupByBox in the scenario described above?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     
            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                e.Layout.ViewStyleBand = ViewStyleBand.OutlookGroupBy;
                e.Layout.Override.AllowGroupBy = DefaultableBoolean.False;  
            }

Children