I want to be able to hide or acrhive rows base on a certain value.
For example I set 10 rows to have a value of true. In code how would I hide them or achive them.
Archive and Hide is really the same thing.
I also want to be able to undide also
Hi,
The easiest way to do this is to handle the InitializeRow event. You can examine any value in in cell of the row and then set the Hidden property on that row.
If something in your application changes and you need to refresh the hidden states, then you can call grid.Rows.Refresh(FireInitializeRow) to cause the event to re-fire for all of the rows.
I am struggling with hidding parts. I am basically not trying to hide parts by group. Review attachment below. I was able to hide rows and unhide rows.
Let give you an example of what i am try to accomplish
say for instance i have three groups
Group A
Color status
red true
blue false
green false
Group B
purple true
yellow true
blue true
---------------------------------------------------------------------------------------------
Output I want: I want to have a check box, once the user check the box, it hides by group where all the colors status each true. Review the linq below
var orderColorGroups = from colorItem in ((DataSet.ColorTale )ultraGrid.DataSource).AsEnumerable()
group colorItem by colorItem .Color_FIELD into
colorGroup
select new
{
COLOR_FIELD= colorGroup.Key, COLOR_PARTSGROUP = colorGroup};
foreach (var group in orderColorGroups )
// I guess I can do the acrhiving or hiding within here
}