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
950
GroupBy functionality in ultragrid
posted

Hi I need to bind my datasource to ultragrid.

Assume my datatable got  4 colums col1, col2 col3 and col4(Title).

Need a code sample to show  my ultragrid  as below when it loaded(without dragging column to show group by)

col1        clo2         clo3   

Title 1

x1           y1           z1

x2           y2           z3

Title 2

x3           x4            x5

 

Thanks

Rajesh...

 

Parents
  • 37774
    posted

     Rajesh,

    Simply add the column to the SortedColumns collection of the band, specifying that the column should be grouped, such as:

    this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add("col4", false, true);

    -Matt

Reply Children