var row = this.gridView.ItemContainerGenerator.ContainerFromItem(item) asGridViewRow;
if(row != null)
{
row.IsExpandable = false;
row.IsExpanded = false;
}
}
foreach(var item ine.AddedItems)
{
var row = this.gridView.ItemContainerGenerator.ContainerFromItem(item) asGridViewRow;
if(row != null)
{
row.IsExpandable = true;
row.IsExpanded = true;
}
}
}
However I suggest you look at this example. I believe that this is actually better choice for the desired functionality.
All the best,
Nikolay Vasilev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>