Making the last visible column 100%

Making the last visible column 100%

MattSkeldonMattSkeldon Posts: 19Questions: 1Answers: 0

I've been looking through the options, is there a simple way of ensuring that the last visible column is always the one that is set to 100% width?

I know I can do this in column definitions, however if the column is made invisible via ColVis button then the other columns stretch to fill the space. Preferably it would keep all columns the same size, except for the last one which now fills the space.

i.e.

| First Name | Last Name | Age | DOB | fills full grid.

If I hide DOB, Age expands to take space, rather than have large amounts of spacing either side of first name / last name.

| First Name | Last Name | Age | rather than | First Name | Last Name | Age |

Or if I hide Last Name DOB is the one to expand to fill the space.

| First Name | Age | DOB | rather than | First Name | Age | DOB |

Hope that makes sense.

Regards MS

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,166Questions: 1Answers: 2,588
    Answer ✓

    Hi Matt,

    No, sorry, that isn't possible. You can only fix column widths as part of the table initialisation, but then they wouldn't be dynamic as you want when other columns become hidden.

    Cheers,

    Colin

  • MattSkeldonMattSkeldon Posts: 19Questions: 1Answers: 0

    Thanks for the response Colin.

    I'll see if I can come up with something when I get some free time.

    Was rather hoping it was just a setting hidden away somewhere that I had not come across before now!

This discussion has been closed.