Hi,
I am using RadGridView with multiple/single field groupings based on conditions. When grid is first bound, it eats away first row of each group, which is event present in the datasource of the grid.
Code for setting default grouping when RadGridView is bound:
Edited: The missing row is restored when I toggle the radio buttons to change the mode (as below)
Below is the code to change the grouping:
Any ideas suggestions on this?
I am using RadGridView with multiple/single field groupings based on conditions. When grid is first bound, it eats away first row of each group, which is event present in the datasource of the grid.
Code for setting default grouping when RadGridView is bound:
private void setGrouping() { if (this.grdScope != null) { this.grdScope.GroupDescriptors.Clear(); GroupDescriptor serviceDescriptor = new GroupDescriptor(); serviceDescriptor.Member = "Service"; serviceDescriptor.SortDirection = ListSortDirection.Ascending; this.grdScope.GroupDescriptors.Insert(0, serviceDescriptor); } }Edited: The missing row is restored when I toggle the radio buttons to change the mode (as below)
Below is the code to change the grouping:
//if radiobutton 1 is checked private void rbService_Checked(object sender, RoutedEventArgs e) { if (this.grdScope != null) { this.grdScope.GroupDescriptors.Clear(); GroupDescriptor serviceDescriptor = new GroupDescriptor(); serviceDescriptor.Member = "Service"; serviceDescriptor.SortDirection = ListSortDirection.Ascending; this.grdScope.GroupDescriptors.Insert(0, serviceDescriptor); } }//if radiobutton 2 is checked private void rbPhase_Checked(object sender, RoutedEventArgs e) { if (this.grdScope != null) { GroupDescriptor phaseDescriptor = new GroupDescriptor(); phaseDescriptor.Member = "Phase"; phaseDescriptor.SortDirection = ListSortDirection.Ascending; this.grdScope.GroupDescriptors.Insert(0, phaseDescriptor); this.grdScope.ShowGroupPanel = false; } } Any ideas suggestions on this?