Ejemplo n.º 1
0
        private void AddRecords(tblFiles.tblFilesDataTable ds)
        {
            for (int n = 0; n < 20000; ++n)
            {
                tblFiles.tblFilesRow aa = ds.NewtblFilesRow();

                aa.FileID = n;
                aa.PathID = n;
                aa.fSize  = n;

                ds.AddtblFilesRow(aa);
            }
        }
Ejemplo n.º 2
0
        private void dsDatasetModify_2(tblFiles.tblFilesDataTable ds, String descr)
        {
            for (int n = 0, eend = ds.Rows.Count; n < eend; ++n)
            {
                tblFiles.tblFilesRow row = ds[n];

                row.BeginEdit();
                try
                {
                    row.FileID      = n;
                    row.fSize       = n;
                    row.Description = descr;
                }
                finally
                {
                    row.EndEdit();
                }
            }
        }