Monday, July 13, 2020
Beetle Blog
Unable to display child object data in GridView using LinqDataSource
By: douglas - - 8/7/2008 1:15:13 AM

When you use a LinqDataSource as the datasource for a GridView you may run into an issue if you try to display data from a child object/table in the LinqDataSource.

For example if you have an object Order and child object Customer trying to call Customer.FirstName will be blank.  This is a bug in .net 3.5.

If you set EnableDelete, EnableInsert or EnableUpdate on the LinqDataSource the Eval statement will work.

Other workarounds and details can be found here:

Last Modified: 8/7/2008 1:19:28 AM

Beetle Blog v0.2.2

Copyright © 1997 - 2020 All rights reserved.