Hi,
in my web application I data bind a list of simple POCO objects into the grid. In the ItemDataBound event handler I add some additional columns with generated values.
E.g.:
protected
void
radGridResult_ItemDataBound(
object
sender, GridItemEventArgs e)
{
GridDataItem lGridDataItem = e.Item
as
GridDataItem;
if
( lGridDataItem !=
null
)
{
lGridDataItem[
"Address"
].Text =
"Foobar"
;
}
}
This works fine unless I try to group the "Address" column inside the web application. Then I get an exception that the "Address" property cannot be found inside the data object.
Is there a way to solve this problem or is it better to create a new POCO data object containing all neccessary properties instead.
Best regards
Martin Horst