public object this[string columnname]
 {
     get
     {
         EbDataColumn col = this.Rows.Table.Columns[columnname];
         if (col != null)
         {
             return(this[col.ColumnIndex]);
         }
         return(null);
     }
     set { this[this.Rows.Table.Columns[columnname].ColumnIndex] = value; }
 }
Example #2
0
        public EbDataTable GetEmptyTable()
        {
            EbDataTable __newTable = new EbDataTable();

            EbDataColumn[] dataColumns = new EbDataColumn[this.Columns.Count];
            this.Columns.CopyTo(dataColumns);

            foreach (EbDataColumn col in dataColumns)
            {
                __newTable.Columns.Add(col);
            }

            return(__newTable);
        }