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

is what totalcount?

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
lee
Top achievements
Rank 1
lee asked on 02 Aug 2010, 02:32 AM
Hi.

I am in the process of Q1 2009 (version 2009.1.312) using.

Advances Q1 2010 SP2 (version 2010.1.0603) with upgrades in this time.

There is class where is removed from previous version.

DataRecord, Records <= Was the correspondence class changed with what kind of thing?

==============================================================================
for (int i = 0; i < RadGridView1.Records.Count; i++)
{
 TeamSiteuser editedRecord = ((DataRecord)this.RadGridView1.Records[i]).Data as TeamSiteuser;
}
==============================================================================
Thanks.

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 02 Aug 2010, 05:39 AM
Hello lee,

Record classes are no longer used; RadGridView now works directly with data item. The up-to-date code is the following:

for (int i = 0; i < RadGridView1.Records.Count; i++)
{
 TeamSiteuser editedRecord = this.RadGridView1.Items[i] as TeamSiteuser;
}

The items property gives access to the items the the grid is bound to.


Kind regards,
Milan
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
GridView
Asked by
lee
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or