as I can do to expand the grouped rows at runtime.
Every time I load my data grid appears with contracted groups.
if someone could help me. thanks
Hello Carlos,
If you would like to have every group by row expanded you could handle InitializeGroupByRow event of the UltraGrid and set the Expanded property of any GroupBy row to true like:
private void ultraGrid1_InitializeGroupByRow(object sender, InitializeGroupByRowEventArgs e) { e.Row.Expanded = true; }
If you have any other questions please feel free to let me know.
I have 2 levels and want the inside level (2nd level) to contract and level out (1st level) to expand, you can do that?thanks for the help.
If I understood you correctly, the following code might help you to achieve what you are looking for:
private void ultraGrid1_InitializeGroupByRow(object sender, InitializeGroupByRowEventArgs e) { e.Row.Expanded = true; if (e.Row.ChildBands.Count > 0) e.Row.ChildBands[0].Rows.ExpandAll(true); }
Please feel free to let me know if I misunderstood you or if you have any other questions.
version is incompatible, you could upload a project with vs 2008 and infragistic v8.3
thanks
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
I just want to make this presentation, the first level and the second level expanded contracted.