one way:
add a column
insert values in it in the event ItemDatabound
example column three is your computed value column:
private void _Grid_ItemDataB ound(object sender,
System.Web.UI.W ebControls.Data GridItemEventAr gs e)
{
if(e.Item.ItemT ype == ListItemType.It em || e.Item.ItemType ==
ListItemType.Al ternatingItem)
{
e.Item.Cells[3].Text = "your computed value";
}
}
cheers,
mortb
"Raymond Du" <rd**@yahoo.com > wrote in message
news:uL******** ******@TK2MSFTN GP15.phx.gbl...
Hi,
Can I have computed columns in a datagrid? If yes, how?
TIA