I have a list of items shown in a GridView. After Initialization I only want to show some, and not all of these Items.
I do this through a function call with the components with the Items I want shown.
My problem is how to hide the Items that I don't want shown. I can't use filtering, because it is impossible to construct a useful filtering string that singles out the objects that I have sent.
I have tried to retrieve all the GridViewRowInfo, setting their IsVisible property to false, then setting IsVisible to true to the ones I want shown. But all Views are still shown in the GridView component.
My Grid is hierarchic, has this anything to do with my items remaining visible?
I do this through a function call with the components with the Items I want shown.
My problem is how to hide the Items that I don't want shown. I can't use filtering, because it is impossible to construct a useful filtering string that singles out the objects that I have sent.
I have tried to retrieve all the GridViewRowInfo, setting their IsVisible property to false, then setting IsVisible to true to the ones I want shown. But all Views are still shown in the GridView component.
My Grid is hierarchic, has this anything to do with my items remaining visible?
public void SetConfigurationGroups(Collection<ConfigurationGroup> configurationGroups, Collection<ConfigurationGroup> expandedGroups) |
{ |
m_GridView BeginEdit(); |
foreach (ConfigurationGroup group in m_ConfigurationGroups) |
{ |
m_ConfiguratioGroupRow[group].IsVisible = false; |
//m_ConfiguratioGroupRow[group]. |
} |
foreach (ConfigurationGroup group in configurationGroups) |
{ |
m_ConfiguratioGroupRow[group].IsVisible = true; |
} |
m_GridView.EndEdit(); |
} |