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

Get DataItem in Grid

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Winston Yong
Top achievements
Rank 1
Winston Yong asked on 15 Jul 2010, 08:25 AM
Hi!

I am binding RadGrid with list of Users like RadGridUser.DataSource = userList and userList is List<User>, my question is, is there any way to get User object from the RadGrid on itemcommand or itemdatabound, I always found DataItem null...

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 15 Jul 2010, 09:02 AM
Hi Winston,

You should be able to do so in the ItemDataBound event as demonstrated in the attached sample.

All the best,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Winston Yong
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or