Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2116
Is there a property that adjusts the cell width to fit the contents and label...
posted

depending on whichever is larger automatically.

Parents
  • 8576
    Offline posted
    Hi -
     
    There is no property that can achieve this and in fact this is not a scenario that is supported.  The reason is simple really:  if the cell width was based on the contents of the cell then the cell width would potentially change as the grid was scrolled to reveal new rows that contained different cell content.  This wouldn't be great behavior.
     
    You will need to manually initialize the width to a value that accomdates most content scenarios and then rely on the user to resize the column manually via the UI if larger content is displayed.  The grid will preserve the user's resizing as the grid is scrolled to new pages.
     
    Joe
     
     
Reply Children