Hi,
I have simple grid that contains 7 text columns with names column1, column2, ... column7.
When I apply following code I got layout that is shown in file grid1.png.
Grid2.png shows what I want to achieve.
I am using 2011.3.11 version of Telerik.
Thanks
I have simple grid that contains 7 text columns with names column1, column2, ... column7.
When I apply following code I got layout that is shown in file grid1.png.
HtmlViewDefinition view = new HtmlViewDefinition();view.RowTemplate.Rows.Add(new RowDefinition());view.RowTemplate.Rows.Add(new RowDefinition());view.RowTemplate.Rows.Add(new RowDefinition());CellDefinition cell = new CellDefinition();//row1cell.UniqueName = "column1";cell.RowSpan = 1;cell.ColSpan = 2;view.RowTemplate.Rows[0].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column4";cell.RowSpan = 3;cell.ColSpan = 1;view.RowTemplate.Rows[0].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column5";cell.RowSpan = 1;cell.ColSpan = 1;view.RowTemplate.Rows[0].Cells.Add(cell);//row2cell = new CellDefinition();cell.UniqueName = "column2";cell.RowSpan = 2;cell.ColSpan = 1;view.RowTemplate.Rows[1].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column3";cell.RowSpan = 2;cell.ColSpan = 1;view.RowTemplate.Rows[1].Cells.Add(cell);cell = new CellDefinition();cell.UniqueName = "column6";cell.RowSpan = 1;cell.ColSpan = 1;view.RowTemplate.Rows[1].Cells.Add(cell);//row3cell = new CellDefinition();cell.UniqueName = "column7";cell.RowSpan = 1;cell.ColSpan = 1;view.RowTemplate.Rows[2].Cells.Add(cell);radGridView1.ViewDefinition = view;Grid2.png shows what I want to achieve.
I am using 2011.3.11 version of Telerik.
Thanks