Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1. Static global array
2. Passing an array through a constructor
3. Saving in settings
4. Saving to a file
5. Message queue.
if you want to work with the same data in different forms, it is better that they exist somewhere separately, perhaps as a field in the main form, with the type:
- an array for a simple case, further on the complication of the task
- a data table https:/ /docs.microsoft.com/ru-ru/dotnet/api/system...
- database https://docs.microsoft.com/ru-ru/ef/
and do binding in grids. then all instances of the datagridview will work with the same source, and even display changes made in another grid
https://docs.microsoft.com/en-us/dotnet/framework/...
https://docs.microsoft.com/ en-us/dotnet/api/system...
https://metanit.com/sharp/entityframework/3.1.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question