ProfK
ProfK

Reputation: 51063

Options besides FormView for data binding web forms

I don't much care for the template rigmarole of the ASP.NET FormView web forms control. It seems the only way to access template defined controls is to 'capture' module level references to the wanted controls in the ItemCreated data binding event, for use in other tasks and event handlers.

Ideally I would just like to be able to call set this.DataSource and call this.DataBind on a page, but only the latter is possible through inheritence, and doesn't achieve any of my normal data binding needs.

What else is there besides the hairy, scary FormView control?

Upvotes: 2

Views: 283

Answers (1)

Brian Mains
Brian Mains

Reputation: 50728

There is the DetailsView control which renders a 2 column table to setup a form. Very uniform control though, so there is limited flexibility if you need that.

Are you looking for all .NET framework or also any OSS or third party?

HTH.

Upvotes: 1

Related Questions