private void FillGrid()
        {
            gridMain.BeginUpdate();
            gridMain.ListGridColumns.Clear();
            GridColumn col = new GridColumn(Lan.g(this, "Date"), 100);

            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Category"), 120);
            gridMain.ListGridColumns.Add(col);
            col = new GridColumn(Lan.g(this, "Description"), 300);
            gridMain.ListGridColumns.Add(col);
            gridMain.ListGridRows.Clear();
            GridRow row;

            Docs = Documents.GetAllWithPat(PatNum);
            for (int i = 0; i < Docs.Length; i++)
            {
                row = new GridRow();
                row.Cells.Add(Docs[i].DateCreated.ToString());
                row.Cells.Add(Defs.GetName(DefCat.ImageCats, Docs[i].DocCategory));
                row.Cells.Add(Docs[i].Description);
                gridMain.ListGridRows.Add(row);
            }
            gridMain.EndUpdate();
        }
 private void FormEhrLabeImageEdit_Load(object sender, EventArgs e)
 {
     Height = System.Windows.Forms.Screen.GetWorkingArea(this).Height;
     this.SetDesktopLocation(DesktopLocation.X, 0);
     checkWaitingForImages.Checked = EhrLabImages.IsWaitingForImages(_ehrLabNum);
     _listPatientDocuments         = new List <Document>(Documents.GetAllWithPat(_patNum));
     _patFolder    = ImageStore.GetPatientFolder(Patients.GetPat(_patNum), ImageStore.GetPreferredAtoZpath());      //This is where the pat folder gets created if it does not yet exist.
     _listAttached = EhrLabImages.Refresh(_ehrLabNum);
     FillGrid();
 }