Graciela
Graciela

Reputation: 21

Bind formview to datatable programmatically in C#

I'm new to C# and I want to know how to bind a FormView from the code behind with a datatable.

Upvotes: 2

Views: 2651

Answers (1)

hunter
hunter

Reputation: 63562

formView.DataSource = dataTable;
formView.DataBind();

Upvotes: 5

Related Questions