Hi All,
Im adding the group by columns in code using sortedcolumns.add method, i.e (user doesnt drag drop those columns), I just want to remove the programtically grouped by column from the group-by box. else is there any way to disbale the columns in the group-by box, so that user cant touch those columns which were grouped in program.
please provide me some work around.
with thanks & Regards
Amjath
Hello Amjath,
Maybe one possible solution could be if you are using GroupByBox.Hidden property. For example:
ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add("Col 1", false, true);
ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add("Col 2", false, true);
ultraGrid1.DisplayLayout.GroupByBox.Hidden =true;
Let me know if you have any questions.
Hi Georgi,
Thanks for the reply, i tried that option before, but the group-by box itself not showing, which means user cant add any more grouping over the programmatic grouping whcih i dont want.
Is that any way to add additional(custom) Group-by box which will just show the user groupings alone.
basically i dont want user to remove the programmatic grouping for any reason.
With Thanks & Regards
amjathrahman said:Is that any way to add additional(custom) Group-by box which will just show the user groupings alone.
No. At that moment we have not such functionality, but one possible solution could be if you are using ultraGrid1_BeforeSortChange event. By this way you could include IF conditions to check what is the column`s key that your user try to drag and drop and if it is a column from programmatic grouping you will cancel the execution of this action.
Let me know if you have any questions