In order to expand all rows in RadGridView you have to iterate through them and set the IsExpanded property to true:
Copy[C#] Expanding all rows of RadGridView
void ExpandAllRows(GridViewTemplate template, bool expanded)
{
foreach (GridViewRowInfo row in template.Rows)
{
row.IsExpanded = true;
}
if (template.Templates.Count > 0)
{
foreach (GridViewTemplate childTemplate in template.Templates)
{
ExpandAllRows(childTemplate, true);
}
}
}
Copy[VB.NET] Expanding all rows of RadGridView
Private Sub ExpandAllRows(ByVal template As GridViewTemplate, ByVal expanded As Boolean)
For Each row As GridViewRowInfo In template.Rows
row.IsExpanded = True
Next
If template.Templates.Count > 0 Then
For Each childTemplate As GridViewTemplate In template.Templates
ExpandAllRows(childTemplate, True)
Next
End If
End Sub