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

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)