예제 #1
0
        private DataColumnBase CreateDetailsViewIndentColumn(int index)
        {
            DataColumnBase dc = new DataColumn();

            dc.IsEnsured           = true;
            dc.RowIndex            = this.RowIndex;
            dc.ColumnIndex         = index;
            dc.IsEditing           = false;
            dc.GridColumn          = null;
            dc.SelectionController = this.DataGrid.SelectionController;
            var intentcell = new GridDetailsViewIndentCell();

            if (this.RowType != Grid.RowType.TableSummaryCoveredRow && this.RowType != Grid.RowType.TableSummaryRow)
            {
                intentcell.ApplyVisualState("LastCell");
            }
            dc.ColumnElement = intentcell;
            return(dc);
        }
예제 #2
0
 public DetailsViewDataRow()
 {
     DetailsViewContentPresenter = new DetailsViewContentPresenter();
     DetailsViewIndentCell       = new GridDetailsViewIndentCell();
     this.RowType = RowType.DetailsViewRow;
 }