Home Forums WinForms controls Xceed Grid for WinForms DetailGrid Spacing / Margins

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

    Hiya,

    I have a hierarchy of say 3 detail grids under the main grid…

    grid 1 (main grid)

    grid 2

    grid 3

    grid 4

    I want to minimize the spacing (margins?) between the detail grids to 0 basically so it would be…

    grid 1 (main grid)
    grid 2
    grid 3
    grid 4

    How would I go about doing this?

    Thank you very much,

    Ken

    Imported from legacy forums. Posted by Ken (had 2212 views)

    User (Old forums)
    Member
    Post count: 23064

    Actually the formatting didn’t show up the way I wanted it to above…

    Each Grid ‘N’ should be indented in the example above to show master/detail hierarchy…. so grid 2 is a detail grid of the main grid, grid 3 is a detail grid of grid 2, grid 4 is a detail grid of grid 3.

    Thanks,

    Ken

    Imported from legacy forums. Posted by Ken (had 309 views)

    User (Old forums)
    Member
    Post count: 23064

    You can use the TopMargin and BottomMargin properties on the DetailGridTemplate, either at design time, or in code.

    detailGridTemplate1.TopMargin.Height = 0;
    detailGridTemplate1.BottomMargin.Height = 0;

    Imported from legacy forums. Posted by André (had 3388 views)

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