Home Forums WinForms controls Xceed Grid for WinForms How to edit records in column instead of rows?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #12959 |

    Hi all
    Instead of having fields in column and datasets in rows, I would like to be able to see it the other way round, and be able to edit my records through columns, and visualize my Database fields in rows. Could you please help me on that matter?
    Thank you

    Imported from legacy forums. Posted by cciarlet (had 2446 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi cciarlet,

    You could do this fairly easily, but you wouldn’t be able to take advantage of some parts of the grid. If you create your own cell type, or even just your own cell viewer, you could create a cell that looks like a column header, and put them along the left side of the grid.

    Then you would just have to walk through the cells in the grid, setting and retrieving cell values, treating the columns as rows, and vice-versa. This would be particularly easy if you were to inherit from the grid. Then you could add your own methods to the grid to access the cells “backwards”, and automatically add your new “row header” cells along the side, etc….

    I hope that gets you started.

    ~Christopher

    Imported from legacy forums. Posted by Christopher (had 312 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Christopher
    tks for that, I will try to figure out what you are refering to !

    Imported from legacy forums. Posted by cciarlet (had 3527 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.