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

    What’s the best way to achieve the following – lets say I have three columns the middle one has to be the size of the grid minus of course the two other columns width. what I want toend up with is a grid where the columns in total cover the grid area completely but the middle column has to be the only column whos’ column width changes.

    Imported from legacy forums. Posted by robertro (had 2036 views)

    User (Old forums)
    Member
    Post count: 23064

    I just started implementing the Xceed Grid in my existing application, but I have been doing this for months with columns in a ListView (detail view) and the approach is the same for me.

    Hook into the “resized” event then, do the following

    myGrid.Columns(“leftCol”).Width = 100 ‘a fixed amount
    myGrid.Columns(“rightCol”).Width = 100 ‘another fixed amount
    myGrid.Columns(“middleCol”).Width = (myGrid.Width – 200)

    I have also done a more complicated one where the “fixed” columns were percentages of the total, with the middle taking up the remaining amount.

    /jlg/

    Imported from legacy forums. Posted by JeanLGentile (had 3232 views)

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