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
75
Fixed GroupByBox Column
posted

Hello,

I have a grid with columns [StamentNumber], [PrintDate] and [ClientName]

I want the grid to be grouped always by [StatementNumber] and preferably that the row with the "Drag a column header here to group by that column." is hidden so that the user can't change the column.

Is there a way to do this?

Thanks!

Parents
  • 20872
    Verified Answer
    Offline posted

    Hello,

    You could achieve what you are looking for in the InitializeLayout event of the UltraGrid.

    Just add the following lines there:

              e.Layout.Bands[0].SortedColumns.Add("StatementNumber", false, true);
              e.Layout.GroupByBox.Hidden = true;

    Please let me know if you have any further questions.

Reply Children
No Data