Hi, Actually i am using your UltraGrid. In run time i m able to drag the column to "Drag a column header here to Group by that Column" but my i want to set header column by using coding. so can u plz provide me which code i used to set the Group by column programatically. Thanks, Waiting Your Reply,
Grouping and sorting and very closely related. So to group a column, you use the SortedColumn.Add method.
grid.DisplayLayout.Bands[0].SortedColumns.Add("My Column", true, true);
Thanks
Hello Anandraj,
If you would like you could use a summaries for that column like:
ultraGrid1.DisplayLayout.Bands[0].Summaries.Add("summaryKey",SummaryType.Sum,e.Layout.Bands[0].Columns["Amount"]);
In order to have a summaries in the GroupByRow you could set the summary positions according to your requirements like:
ultraGrid1.DisplayLayout.Override.SummaryDisplayArea = SummaryDisplayAreas.InGroupByRows;
Please let me know if you still need further assistance with your requirements.
Hello Ishant7890,
Could you please let me know which buttons are you referening exactly? Maybe you are talking about SortI ndicators?
If you could provide me with a screenshot I would be glad to assist you further with your requirements.
hi
how can i access sorted column value?
i sorted the grid by column vendor,
grid.DisplayLayout.Bands[0].SortedColumns.Add("Vendor", true, true)
i want to sum up the amount column, how can i access by group by row or sorted option?
I have to add and remove the buttons each tile the user groups and ungroup at runtime
I tried using initializegroupbyrow event but that adds button only once i.e level1 grouping
Plz help
thx for your help it's working now