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

Go over RadGridView Rows

3 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gili
Top achievements
Rank 1
Gili asked on 14 Feb 2013, 08:38 AM
hi,
I want to go over each row in the gridview 

i tried this :
foreach(GridViewRow row in gridview.Rows)
but gridview.Rows does not exist .

how can i do it? 

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Feb 2013, 08:46 AM
Hello,

You should actually work with the GridView's Items collection and iterate on it. Will this work for you? 

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Gili
Top achievements
Rank 1
answered on 14 Feb 2013, 08:51 AM
not really , I have tried this already and i dont how to acsses each cell in the row (item) 

 how do i  Treat  the item i get As a Row?
0
Dimitrina
Telerik team
answered on 14 Feb 2013, 09:02 AM
Hello,

Generally it is not recomended to work with the visual elements (i.e. GridViewCell) and its properties. May I ask you to share why do you need to access the cells? What is your final target?

All the best, 
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Gili
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Gili
Top achievements
Rank 1
Share this question
or