var stackedHeaderRow2 = new StackedHeaderRow();
stackedHeaderRow2.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col1,Col2,Col3", HeaderText = "Col Set 1" });
stackedHeaderRow2.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col4,Col5,Col6", HeaderText = "Col Set 2" });
dataGrid.StackedHeaderRows.Add(stackedHeaderRow2);
var stackedHeaderRow1 = new StackedHeaderRow();
stackedHeaderRow1.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col1", HeaderText = "Val1" });
stackedHeaderRow1.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col2", HeaderText = "Val2" });
stackedHeaderRow1.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col3", HeaderText = "Val3" });
stackedHeaderRow1.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col4", HeaderText = "Val1" });
stackedHeaderRow1.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col5", HeaderText = "Val2" });
stackedHeaderRow1.StackedColumns.Add(new StackedColumn() { ChildColumns = "Col6", HeaderText = "Val3" });
dataGrid.StackedHeaderRows.Add(stackedHeaderRow1); |
this.sfDataGrid1.Columns["Col1"].HeaderText = "Val1"; |