Go over RadGridView Rows

4 posts, 0 answers
  1. Gili
    Gili avatar
    14 posts
    Member since:
    Jan 2013

    Posted 14 Feb 2013 Link to this post

    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? 

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Feb 2013 Link to this post

    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.

  3. Gili
    Gili avatar
    14 posts
    Member since:
    Jan 2013

    Posted 14 Feb 2013 Link to this post

    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?
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Feb 2013 Link to this post

    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.

Back to Top