Dear Tekerik Team,
I'm using the following code (found on this forum) to expand / collapse a self referencing hierarchy grid:
While the code works after the data are first loaded, it only collapses child rows when I add a new row to the dataset. I wonder if there is another method to collapse / expand all rows.
In the same vein and if I add a parent row to the self referencing hierarchy grid, the following code does not start the edit:
The above code would however start the edit on a child row. Is there any other method for a parent row?
Best regards,
Alain
I'm using the following code (found on this forum) to expand / collapse a self referencing hierarchy grid:
RadGridView1.TableElement.BeginUpdate()
For Each row1 As GridViewDataRowInfo In RadGridView1.Rows
row1.IsExpanded = True
Next
RadGridView1.TableElement.EndUpdate()
While the code works after the data are first loaded, it only collapses child rows when I add a new row to the dataset. I wonder if there is another method to collapse / expand all rows.
In the same vein and if I add a parent row to the self referencing hierarchy grid, the following code does not start the edit:
Dim
lastRow As GridViewRowInfo = RadGridView1.Rows(RadGridView1.Rows.Count - 1)
lastRow.EnsureVisible()
lastRow.IsSelected =
True
lastRow.Cells(
"Items").BeginEdit()
The above code would however start the edit on a child row. Is there any other method for a parent row?
Best regards,
Alain