public int IndexOf(DataViewColumn column) { if (column == null) { return(-1); } return(m_Columns.IndexOf(column)); }
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); }
public bool Contains(DataViewColumn column) { return(IndexOf(column) >= 0); }
public void Move(DataViewColumn column, int toIndex) { Move(IndexOf(column), toIndex); }
public DataViewColumn Add(string name, string propertyPath) { var col = new DataViewColumn(this, name, propertyPath); return(Add(col)); }