I'll describe what I'm doing before asking my question. I have a
form that is using the grid control and would like to open a new form
window with the data from the row that was selected. What's the best
way to pass the currently selected row to a new form?
1 Answer, 1 is accepted
answered on 21 Jul 2009, 08:45 AM
There is no best way of passing information between objects. It all depends on what you are trying to achieve. You could simply attach the desired row to the Tag property of your new form. Another way would be to create a structure and copy all the values from the row and then pass the structure to your other form constructor. As I said, the way is context specific, there is no best way. The design decision is yours. Write again if you have other questions.