Datagridview display columns in rows RRS feed

  • Question

  • Hello I have a datagrid of 4 columns , I would like to know how do i horizontal display a third column as row below first and second and fourth coulmn

    please provide me with a demo link or souce code in order to swap the third column as row

    Monday, June 24, 2013 7:13 AM


  • Hello There,

    To achieve this goal, you need to re-draw this cells by yourself with this event: CellPainting event, please refer to this Link: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellpainting.aspx . And here is a similar thread on this topic:  http://social.msdn.microsoft.com/Forums/vstudio/en-US/aba4216a-b3bc-42ef-a928-881cd0bc8ee4/merge-column-header-cells , the marked answer providers the detailed code.

    Best regards,


    • Proposed as answer by CrazyGhost_Von Wednesday, June 26, 2013 5:33 AM
    • Marked as answer by Youen Zen Monday, July 8, 2013 9:17 AM
    Wednesday, June 26, 2013 5:24 AM