Thx for the reply.
I have 10 grouped rows.I hv expanded 3 grouped rows.I have selected the record in the first grouped row.Now if I click expangOnlySelected group, I get selectedrecords count zero.
I assume selected reocrd is nothing but selected row inside a grouped row.
Thx,
prathima
>Given a Group g, you can expand or collapse it by setting g.IsExpanded to true or false. Same is true for a GridRecord r using r.IsExpanded. (You can also use teh Record.SetSelected method too.)
>
>Here is a little button handler that will expand all selected records in a nested table.
>
>private void button1_Click(object sender, System.EventArgs e)
>{
> this.gridGroupingControl1.Table.CollapseAllRecords();
> foreach(SelectedRecord r in this.gridGroupingControl1.Table.SelectedRecords)
> {
> r.Record.IsExpanded = true;
> }
>}
>
>
>