How to get cells in RadGridView?

3 posts, 0 answers
  1. Andy
    Andy avatar
    3 posts
    Member since:
    Mar 2014

    Posted 06 Mar 2014 Link to this post

    var firstRow = this.gridView.ItemContainerGenerator.ContainerFromIndex(0) as GridViewRow;
    //var firstRow = this.gridView.GetRowForItem(this.gridView.Items[0]) as GridViewRow;
    var cells = firstRow.Cells;
    var firstCell = firstRow.Cells[0];

    I have tried the code above, but "cells" is just provides the cells in viewable area. If I drag horizontal scrollbar to the right side and hide the first column, then I can not get the real first cell by "firstCell". Otherwise, "firstRow.Cells.Count" changes with the horizontal scrollbar scrolling.

    Please help...
  2. Andy
    Andy avatar
    3 posts
    Member since:
    Mar 2014

    Posted 07 Mar 2014 in reply to Andy Link to this post

    Is anybody here?
  3. DevCraft banner
  4. Andy
    Andy avatar
    3 posts
    Member since:
    Mar 2014

    Posted 07 Mar 2014 in reply to Andy Link to this post

    Hello, I'm not here right now. Please leave a message after the beep......
Back to Top