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
505
Force display group-by-column-key column in grid within UltraTabStripControl
posted

I have a grid inside an ultraTabStripControl which I used to have group-by-column-key to group the data in the grid.  The column key used to group the grid is hidden from the grid.  I would like it to still display in the grid, how do I do it?

I set the Hidden of the column to false, but it didn't work:

private void ultraTabStripControl1_SelectedTabChanged(object sender,
        Infragistics.Win.UltraWinTabControl.SelectedTabChangedEventArgs e)
{
       var band = ultraGridDealDetail.DisplayLayout.Bands[0];
      _groupByColumnKey = band.Columns[_tabColumnMapper[e.Tab.Index]].Key;
      band.SortedColumns.Clear();
      band.SortedColumns.Add(_groupByColumnKey, false, true);

     band.Columns[ _groupByColumnKey ].Hidden = false; <-- SET TO FALSE,
                                                                                                               but it remains true when I
                                                                                                               viewed it in debugger, and
                                                                                                               the column remained hidden when
                                                                                                              data in grid populated

..............................

.............................


-- cpswart

 

 

  • 505
    posted

    I got it, set property HiddenWhenGroupBy of the column to false, in grid designer.