This is a migrated thread and some comments may be shown as answers.

LinqDatasource and ItemDataBound

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthias Schuster
Top achievements
Rank 1
Matthias Schuster asked on 05 Aug 2009, 02:52 PM
I finally changed my way to bind and used the new linqdatasource. The problem i have ist that ItemDataBound not works as expected. I thought that using an entity (e.g. user) in the linq datasource i should get the entity in itemdatabound via e.Item.DataItem.

What's wrong? How to get the data? Do i really have to reread the data on the database?

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 10 Aug 2009, 08:04 AM
Hello Matthias,

e.Item.DataItem within ItemDataBound event does contain current entity.
For your conveniance I am attaching sample project.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Matthias Schuster
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or