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

Multiple FormTemplates

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Henrik
Top achievements
Rank 1
Henrik asked on 24 Mar 2010, 10:28 AM
Hi!

I have a hierarchical GridView populated by data from a database. Currently I have a FormTemplate for modifying (all but one) rows on the Edit command in my grid, and it works great. My problem is that the top row is somewhat different from the others and requires a different form. Is it somehow possible to have two FormTemplates for a GridView?

If not, what do you think is the preferred way of doing this?

Best regards
Henrik

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Mar 2010, 11:32 AM
Hello,

One suggestion would be hooking the ItemCommand event of the grid and switch the user control (custom edit form) after checking the which row is clicked.

I hope the following documentation will shed some light on this.
Different edit forms on edit and insert

Thanks,
Princy.
Tags
Grid
Asked by
Henrik
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or