In order to expand all rows in RadGridView you have to iterate through them and set the IsExpanded property to true:
| [C#] Expand all grid rows |
Copy Code |
|
private void ExpandAllRows(RadGridView grid, bool
expand)
{
grid.GridElement.BeginUpdate();
foreach (GridViewRowInfo row in grid.Rows)
{
row.IsExpanded = expand;
}
grid.GridElement.EndUpdate();
}
|
| [VB] Expand all grid rows |
Copy Code |
|
Private Sub ExpandAllRows(ByVal grid As
RadGridView, ByVal expand As Boolean)
grid.GridElement.BeginUpdate
For Each row As GridViewRowInfo In grid.Rows
row.IsExpanded = expand
Next
grid.GridElement.EndUpdate
End Sub
|