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,
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
Hello Mo_Mo,
Probably you would be able to do something like the following:
ultraGrid1.BeforeSortChange += new Infragistics.Win.UltraWinGrid.BeforeSortChangeEventHandler(ultraGrid1_BeforeSortChange); void ultraGrid1_BeforeSortChange(object sender, Infragistics.Win.UltraWinGrid.BeforeSortChangeEventArgs e) { //Verifying the SortOrder of the Column if (e.SortedColumns[0].SortIndicator == Infragistics.Win.UltraWinGrid.SortIndicator.Ascending) { } //Verifying if the Column is GroupedBy if (e.SortedColumns[0].IsGroupByColumn) { } }
Please let me know if you need any other assistance.