This is a migrated thread and some comments may be shown as answers.

Passing Selected Row

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Zoomer
Top achievements
Rank 1
Zoomer asked on 20 Jul 2009, 10:21 PM
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? 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 21 Jul 2009, 08:45 AM
Hi Zoomer,

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.

All the best,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Zoomer
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or