How progamming grouping colum in radgridview?
I have this grid (picture "grid_now.jpg")
Need to do (picture "grid_needow.jpg")
Programm code :
not work(
I have this grid (picture "grid_now.jpg")
Need to do (picture "grid_needow.jpg")
Programm code :
this.columnGroupsView = new ColumnGroupsViewDefinition();<
br
><
br
> this.columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup("group1"));<
br
> this.columnGroupsView.ColumnGroups[0].Groups.Add(new GridViewColumnGroup("h1"));<
br
> this.columnGroupsView.ColumnGroups[0].Groups[0].Rows.Add(new GridViewColumnGroupRow());<
br
> this.columnGroupsView.ColumnGroups[0].Groups[0].Rows[0].ColumnNames.Add("column1");<
br
> this.columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup("group2"));<
br
> this.columnGroupsView.ColumnGroups[1].Groups.Add(new GridViewColumnGroup("h1"));<
br
> this.columnGroupsView.ColumnGroups[1].Groups[0].Rows.Add(new GridViewColumnGroupRow());<
br
> this.columnGroupsView.ColumnGroups[1].Groups[0].Rows[0].ColumnNames.Add("column2");<
br
> this.columnGroupsView.ColumnGroups[1].Groups[0].Rows.Add(new GridViewColumnGroupRow());<
br
> this.columnGroupsView.ColumnGroups[1].Groups[0].Rows[1].ColumnNames.Add("column3");<
br
><
br
> this.radGridView1.ViewDefinition = columnGroupsView;<
br
>