I just want to share this with everyone. Here is how I managed to remove the "empty space" in the details section, so the group data is next to one another.
This code is inside a detail.ItemDataBound event, so "sender" is a Processing.DetailSection object, and based on one of DataItem's attributes I hide all the Items and the section itself.
This code is inside a detail.ItemDataBound event, so "sender" is a Processing.DetailSection object, and based on one of DataItem's attributes I hide all the Items and the section itself.
| Dim section As Processing.DetailSection = CType(sender, Processing.DetailSection) |
| Dim rv As DataRowView = CType(section.DataItem, DataRowView) |
| If CType(rv.Row("TagCount"), Integer) = 0 Then |
| For i As Integer = 0 To section.Items.Count - 1 |
| section.Items(i).Visible = False |
| Next |
| section.Visible = False |
| End If |