D
Darren Clark
I am trying to work out how to change some values of data during
itemdatabound.
MSDN states that the ItemDataBound is called BEFORE the render... so any
changes do the data SHOULD work..
however ihave the following example... and it doesnt work at all... the
text CHANGE_Value does not come up at any time...
public void rptList_ItemDataBound(Object Sender, RepeaterItemEventArgs e)
{
DataRowView drv = (DataRowView) e.Item.DataItem;
if (drv == null)
return;
drv["body"] = "CHANGE_Value";// + row["body"].ToString();
}
itemdatabound.
MSDN states that the ItemDataBound is called BEFORE the render... so any
changes do the data SHOULD work..
however ihave the following example... and it doesnt work at all... the
text CHANGE_Value does not come up at any time...
public void rptList_ItemDataBound(Object Sender, RepeaterItemEventArgs e)
{
DataRowView drv = (DataRowView) e.Item.DataItem;
if (drv == null)
return;
drv["body"] = "CHANGE_Value";// + row["body"].ToString();
}