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); }
public DetailsViewDataRow() { DetailsViewContentPresenter = new DetailsViewContentPresenter(); DetailsViewIndentCell = new GridDetailsViewIndentCell(); this.RowType = RowType.DetailsViewRow; }