I am adding a group programmatically right after I databind using the one line of code below.
this
.ugDataGrid.DisplayLayout.Bands[0].Groups.Add("KEYNAME");
I then need to be able to hide the group by box and be able to nagivate the bands. Is there an an option? If an option does not exist, then I want to lock the group (user should not be able to ungroup or group other columns).
Hi,
To hide the groupby area you just need to do the following:
this.ugDataGrid.DisplayLayout.GroupByBox.Hidden = true
I am thinking I might be doing something worng. When I add the group my dada was disappearing in the grid. Sorry, I forgot to mention that. Hiding the group box was never a problem. I can see the datatable having that column with data. But, by performing the Group.Add, the column is not inside the GroupBox and ofcouse the data that is bound to the grid no longer getting displayed. Basically at the end I am trying to programmatic grouping of columns after the databinding takes place.