Example #1
0
 public void registerNewCols(DataTable dt)
 {
     _dtCI = VBCommon.Metadata.dtColumnInformation.getdtCI(dt, false);
     foreach (DataColumn c in dt.Columns)
     {
         if (!_dtCI.getColStatus(c.ColumnName))
         {
             _dtCI.addColumnNameToDic(c.ColumnName);
         }
     }
 }
Example #2
0
            public DataTable filterDisabledCols(DataTable dt)
            {
                //filter out disabled columns
                DataTable dtCopy = dt.Copy();

                VBCommon.Metadata.dtColumnInformation dtCI = VBCommon.Metadata.dtColumnInformation.getdtCI(dt, false);
                foreach (KeyValuePair <string, bool> kv in dtCI.DTColInfo)
                {
                    if (kv.Value)
                    {
                        continue;
                    }
                    if (dtCopy.Columns.Contains(kv.Key))
                    {
                        dtCopy.Columns.Remove(kv.Key);
                    }
                }
                dtCopy.AcceptChanges();
                return(dtCopy);
            }
Example #3
0
            public void registerNewCols(DataTable dt)
            {
                _dtCI = VBCommon.Metadata.dtColumnInformation.getdtCI(dt, false);
                foreach (DataColumn c in dt.Columns)
                {
                    if (!_dtCI.getColStatus(c.ColumnName))
                    {
                        _dtCI.addColumnNameToDic(c.ColumnName);
                    }

                }
            }
Example #4
0
 public TableUtils(DataTable dt)
 {
     _dt = dt;
     _dtCI = VBCommon.Metadata.dtColumnInformation.getdtCI(dt, false);
     _dtRI = VBCommon.Metadata.dtRowInformation.getdtRI(dt, false);
 }
Example #5
0
 public TableUtils(DataTable dt)
 {
     _dt   = dt;
     _dtCI = VBCommon.Metadata.dtColumnInformation.getdtCI(dt, false);
     _dtRI = VBCommon.Metadata.dtRowInformation.getdtRI(dt, false);
 }