Since I'm developing my user interface elements as WebParts (class libraries) in MOSS 2007, I don't have the luxury of an .aspx page. And without an aspx page, i have to try and convert the declarative examples found on this site to work programmatically. I'm having a difficult time trying to create a custom form in a RadGrid using my own controls instead of using the auto-generated form provided by the RadGrid itself. One way I've seen this is through the use of Templates where you provide your own form to the "MasterTableView.EditFormSettings.FormTemplate". I can't find an example where this is all handled programmatically. In this situation, is it preferred that I just use the RadGrid to display a list and redirect the user to another page where the form will reside, passing the primary key as part of the query string? Or should I write my form as a class that inherits from "System.Web.UI.ITemplate" and set my RadGrid's "FormTemplate" to this class? I like the template route but I can't seem to find any good examples.
A basic example would be a RadGrid with a few rows of data... the user clicks the "Edit" button and my custom form will display itself as a "GridEditMode.PopUp".