Hi,
I have a GridView what I fill through a LINQ expression.
Something like this:
GridView1.DataSource = from c in customers, o in c.Orders,
total = o.Total where total >= 2000 select new {id = c.CustomerID,
order = o.OrderID, total = total};
And in its RowCreated method I try to get a property, for example the id, but it has no a known type:
object element = e.Row.DataItem;
int id = element.id; // It's bad!!!!!!
How can I do?
Thanks!!