0

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

1 Answer 1

1

No other way of binding data to ListView except DataSourceId and SataSource Check the ListView control Reference from MSDN Here.

Sign up to request clarification or add additional context in comments.

1 Comment

I think you want change the layout after databinding, then try the Item_DataBound event for reference codeproject.com/Articles/25393/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.