gridview equivalent for formview

gridview equivalent for formview

am 24.01.2008 19:46:02 von rodchar

hey all,

TemplateField tf1 = new TemplateField();
MyTemplate t1 = new MyTemplate("FirstName");
tf1.HeaderText = "First Name";
tf1.ItemTemplate = t1;
GridView1.Columns.Add(tf1);

Is there a way take the above template and easily add it to a formview
instead of a gridview?

thanks,
rodchar