In this sample used code that hides only selected node, nearest update will contain multiple selection nodes hiding.
Now you can use following code to hide multiple selection:
[c#]
private void hideSelectedBtn_Click(object sender, System.EventArgs e)
{
if ((treeviewGrid.Options & GridOptions.MultiSelect) != 0)
{
NodeBase[] selection = treeviewGrid.Rows.GetSelection();
if (selection != null && selection.Length > 0)
{
treeviewGrid.BeginInit();
try
{
foreach(NodeBase node in selection)
{
node.Hidden = true;
}
}
finally
{
treeviewGrid.EndInit();
}
}
else MessageBox.Show(\"Nothing selected!\");
}
else
{
if (treeviewGrid.Selected != null)
{
treeviewGrid.Selected.Hidden = true;
}
else MessageBox.Show(\"Nothing selected!\");
}
}