Word documents are loaded dataGridView .
How to display in the textBox field the number of loaded documents? In order to know, in which case, which documents were uploaded and which were not.
Word documents are loaded dataGridView .
How to display in the textBox field the number of loaded documents? In order to know, in which case, which documents were uploaded and which were not.
I would probably do something like this:
created a class Document :
public class Document { public int Id {get; set;} public string Path {get;set;} public bool HasAttachedFile {get;set;} } when attaching / uploading a file, if successful, set the corresponding flag ( HasAttachedFile ) to true
public IEnumerable<Document> GetDocuments() { //метод который будет возвращать список документов } There must be a field in the grid indicating whether the file is uploaded or not.
there should also be a method that will show the number of documents without the file loaded
public int GetCountDocumentsWithoutAttachment() {} Source: https://ru.stackoverflow.com/questions/607858/
All Articles