C1DataGrid for Silverlight 和 Spread for Silverlight都可以实现:
比如Spread for Silverlight:
- GrapeCity.Windows.SpreadSheet.Data.CellRange r;
- r = new GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 3, 3);
- gcSpreadSheet1.Sheets[0].AddSpanCell(r, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
- gcSpreadSheet1.Sheets[0].RowHeader.ColumnCount = 2;
- gcSpreadSheet1.Sheets[0].ColumnHeader.RowCount = 2;
- GrapeCity.Windows.SpreadSheet.Data.CellRange r2;
- r2 = new GrapeCity.Windows.SpreadSheet.Data.CellRange(0, 0, 2, 2);
- gcSpreadSheet1.Sheets[0].AddSpanCell(r2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.RowHeader);
复制代码 |