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!
Hey Danko!
I had already tried something similar but for some reason I couldn't make it work. This works perfectly. Thanks!
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.