Reputation: 19
I have declared a listView control on an aspx page.
e.g. <asp:Listview ID="ListView1" runat="server"><ItemTemplate></ItemTemplate></asp:Listview>
I want to know that how i can add one or more ListViewItems in code behind.
***Please don't give a solution that uses DataSource and DataBind methods for the ListView.
Thanks
Upvotes: 0
Views: 2874
Reputation: 6180
No other way of binding data to ListView except DataSourceId and SataSource Check the ListView control Reference from MSDN Here.
Upvotes: 1