public override void MakeRow(SourceGrid.GridRow gridrow) { if (RowTitleVisible) { base.MakeRow(gridrow); return; } GridRow = gridrow; Grid = GridRow.Grid as MyGrid; int i = GridRow.Index; MakeFirstCell(); var datacell = MakeDataCell(); Grid[i, 1] = datacell; datacell.ColumnSpan = 2; MyEditor = datacell.Editor; if (RowSpan > 1) { Grid[i, 0].SetSpan(RowSpan, 1); Grid[i, 1].SetSpan(RowSpan, 2); } }
public override void MakeRow(SourceGrid.GridRow gridrow) { GridRow = gridrow; Grid = GridRow.Grid as MyGrid; int i = GridRow.Index; var datacell = MakeDataCell(); Grid[i, 0] = datacell; datacell.SetSpan(RowSpan, 3); MyEditor = datacell.Editor; }
public Cells.ICell this[GridRow row] { get { Cells.ICell cell; if (mCells.TryGetValue(row, out cell)) return cell; else return null; } set { mCells[row] = value; } }
public override void MakeRow(SourceGrid.GridRow gridrow) { base.MakeRow(gridrow); int i = GridRow.Index; MakeFirstCell(); MakeCaptionCell(); var datacell = MakeDataCell(); Grid[i, DataColumnNr] = datacell; this.MyEditor = datacell.Editor; if (RowSpan > 1) { Grid[i, 0].SetSpan(RowSpan, 1); Grid[i, 1].SetSpan(RowSpan, 1); Grid[i, 1].View.WordWrap = true; Grid[i, 2].SetSpan(RowSpan, 1); } }
public override void MakeRow(SourceGrid.GridRow gridrow) { this.GridRow = gridrow; if (gridrow != null) { this.Grid = gridrow.Grid as MyGrid; } int i = GridRow.Index; MakeFirstCell(); var caption = MakeCaptionCell(); caption.SetSpan(1, 2); MakeFirstCell(1); var datacell = MakeDataCell(); Grid[i + 1, 1] = datacell; datacell.SetSpan(1, 2); MyEditor = datacell.Editor; }
public override void MakeRow(SourceGrid.GridRow gridrow) { GridRow = gridrow; int i = GridRow.Index; var grid = GridRow.Grid as MyGrid; if (TitleRowType == ETitleRowType.Static) { grid[i, 0] = new SourceGrid.Cells.Cell(RowTitle); grid[i, 0].View = grid.gridViewModel.titleModel; grid[i, 0].ColumnSpan = 3; } else if (TitleRowType == ETitleRowType.Collapsable) { grid[i, 0] = new SourceGrid.Cells.Button("-"); grid[i, 0].AddController(buttonController); grid[i, 0].View = grid.gridViewModel.titleModel; grid[i, 1] = new SourceGrid.Cells.Cell(RowTitle); grid[i, 1].View = grid.gridViewModel.titleModel; grid[i, 1].ColumnSpan = 2; } else if (TitleRowType == ETitleRowType.CollapsableWithValue) { grid[i, 0] = new SourceGrid.Cells.Button("-"); grid[i, 0].AddController(buttonController); grid[i, 0].View = grid.gridViewModel.titleModel; grid[i, 1] = new SourceGrid.Cells.Cell(RowTitle); grid[i, 1].View = grid.gridViewModel.titleModel; grid[i, 2] = new SourceGrid.Cells.Cell(); grid[i, 2].View = grid.gridViewModel.titleDataCellModel; } else if (TitleRowType == ETitleRowType.SubTitle) { MakeFirstCell(); grid[i, 1] = new SourceGrid.Cells.Cell(RowTitle); grid[i, 1].View = grid.gridViewModel.titleModel2; grid[i, 1].ColumnSpan = 2; } }
/// <summary> /// Creates a new GridRowAccessibleObject /// </summary> /// <param name="gridRow">The grid row</param> /// <param name="parent">The grid row's parent grid</param> public GridRowAccessibleObject(GridRow gridRow, GridAccessibleObject parent) : base() { this.gridRow = gridRow; this.parent = parent; }