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

Iterate throught RadGridView items?

2 Answers 138 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Enill
Top achievements
Rank 1
Enill asked on 14 Jul 2010, 04:30 PM
Hi,
i am currently developing a silverlight application where i used a RadGridView. The RGV is initially populated with existing data displayed on 2 columns.

It is possible for the user to edit the cells of the RGV.

I have a "Apply" button, and when this button is clicked i would like to loop throught all items in the RGV and apply the change to a database if the user modified or added cells.

How can i iterate inside the RGV items to validate these changes? Row index, column index, cells index, etc...

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 14 Jul 2010, 04:45 PM
Hi Enill,

You can use the Items property which is a collection of all items that the grid is bound to. You can loop through this collection to apply any changed to the database.

You could also take a look at Ria Services which provides a very easy way to interact with databases. In regards to validation, our documentation contains several help articles that will get you started.  

Sincerely yours,
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
0
Enill
Top achievements
Rank 1
answered on 14 Jul 2010, 06:30 PM
Thanks for the reply but i figured it out.

I was expected to see something like 'RadGridViewItem' or something, but, like you said, i only had to use my custom class used for databinding.
Tags
GridView
Asked by
Enill
Top achievements
Rank 1
Answers by
Milan
Telerik team
Enill
Top achievements
Rank 1
Share this question
or