Hi,
I have hierarchical RadGridView where MasterGridViewTemplate.AutoExpandGroups is set to False. Code for binding is like this.
PatientGridView.DataSource = currentPatientList; |
GridGroupByExpression patientExpression = new GridGroupByExpression(); |
patientExpression.Expression = "FullName as FullName format \"{1}\" Group By OrderID"; |
PatientGridView.MasterGridViewTemplate.GroupByExpressions.Add(patientExpression); |
After binding I want to programatically expand some groups by certain condition. I have tried with following code but it doesn't work:
foreach (GridViewRowInfo row in PatientGridView.Rows) { |
if (someCondition == true) { |
row.IsExpanded = true; |
row.IsSelected = true; |
PatientGridView.GridNavigator.SelectRow(row); |
} |
} |
Can you advise how to programmatically expand specific group in RadGridView where all groups are collapsed by default?
Regards,
Tomislav