i have a webpart that creates a list dynamically.Now i want to create a infopath form for that list dynamically with the columns of that list only, so that when a user clicks add a document that new infopath should open.
So, in a nutshell, my webpart creates a list with user specified columns and its infopath(which is it's default infopath).
i am using sharepoint 2010,infopath 2010,visul studio 2010.
Then, when a user creates an item in the list, the default content type will be used and the InfoPath form will be displayed.