Hi,
The following is a code snippet that add's a child item ("Model") to a parent item ("Car"). If the "Model" rows are collapsed the new "Model" item is visible when the "Car" parent is expanded. If however the "Car" was already expanded the "Model" row is not visible. If I then collapse and expand it still does not show. Is there a property that I can set to make the "Model" row visible?
Thanks
Rich
void RadGridView1_SelectionChanged(object sender, SelectionChangeEventArgs e)
{
GridViewDataControl gridDC = e.Source as GridViewDataControl;
if (gridDC.SelectedItem is Car)
{
Car car = ((Car)gridDC.SelectedItem);
Model model = new Model();
model.ModelName = "Matrix";
model.Horsepower = 166;
model.Wheelbase = 112;
car.Models.Add(model);
}
}