Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Expand grouped items
posted

Hello,

My DataGrid is initially grouped by two columns. Is it possible to have all items expanded by default. Right now they are all collapsed when the grid is loaded.

 Thanks,

Jens 

Parents
No Data
Reply
  • 4850
    Verified Answer
    Offline posted

    Hi Jens,

    The easiest way to accomplish this is to wire up the InitializeRecord event and set IsExpanded to true, e.g.

    void OnInitializeRecord(object sender, InitializeRecordEventArgs e)

    {

    GroupByRecord gbr = e.Record as GroupByRecord;

    if (gbr != null)

    gbr.IsExpanded = true;

    }

Children