I am trying to add a new item in a ListView on itemdatabound. What is the best way to do it?
Data comes from a dataset with
TopicReplyListView.DataSource = TopicReplyDataTable;
TopicReplyListView.DataBind();
on
TopicReply_ItemDataBoundEvent
I want to add text such as "TEST ITEM" and continue to bind
my TopicReply_ItemDataBoundEvent is
protected void TopicReply_ItemDataBoundEvent(object sender, ListViewItemEventArgs e)
{
if (e.Item.ItemType == ListViewItemType.DataItem)
{
ListViewDataItem dataItem = (ListViewDataItem)e.Item;
}
}