예제 #1
0
 public int IndexOf(DataViewColumn column)
 {
     if (column == null)
     {
         return(-1);
     }
     return(m_Columns.IndexOf(column));
 }
예제 #2
0
 public DataViewColumn Add(DataViewColumn column)
 {
     if (column.Name == null)
     {
         throw new ApplicationException("Column name cannot be empty");
     }
     if (m_ColumnsSorted.ContainsKey(column.Name))
     {
         throw new ApplicationException("Column with name '" + column.Name + "' already exist");
     }
     m_Columns.Add(column);
     m_ColumnsSorted.Add(column.Name, column);
     column.InitProperty(m_owner.ItemType);
     return(column);
 }
예제 #3
0
 public bool Contains(DataViewColumn column)
 {
     return(IndexOf(column) >= 0);
 }
예제 #4
0
 public void Move(DataViewColumn column, int toIndex)
 {
     Move(IndexOf(column), toIndex);
 }
예제 #5
0
        public DataViewColumn Add(string name, string propertyPath)
        {
            var col = new DataViewColumn(this, name, propertyPath);

            return(Add(col));
        }