Пример #1
0
 public DataCell GetData(DataColumnDefinition cell)
 {
     //if (cell instanceof PropertyBasedColumn) {
     //    return new DataCell(DataColumnDefinition.TYPE_STRING, getProperty(((PropertyBasedColumn)cell).getColumnName()));
     //}
     return(Cells[Model.GetCellId(cell)]);
 }
Пример #2
0
        public int GetCellId(DataColumnDefinition cell)
        {
            int index = this.Columns.IndexOf(cell);

            if (index == -1)
            {
                throw new Exception(String.Format("Column {0} not provided by data source {1}.", cell.ColumnName, cell.SourceName));
            }

            return(index);
        }