title: How to auto fit/scale DBGrid's (or other similar) columns widths according to its contents?
body: <p>I am trying to make a frame with a <code>DBGrid</code> that will serve for more than 10 tables with half of its fields as defaults, and other fields exclusive for each table.</p>
  
  <p>As the space for the columns are limited and I do not want to configure each column of each table manually because it is very poor quality work, I was wondering a way to calculate the width of each column by the largest content of a row inside that column, measured by the own component or by the data set. </p>
  
  <p>Does anyone knows the way? Is there out in the world some custom component with that power?
  <strong>I need a solution that implements increase and decrease of size, according to the the visible data in the all visible columns of the grid.</strong>
  My solution so far had a problem with the painting of the selected cell, witch jumps out of the selected dataset row.</p>
  
  <p><img src="https://i.stack.imgur.com/B4rry.png" alt="enter image description here"></p>
  
  <hr>
  
  <p>Note: Please, do not close my question. It is not about the fit with the grid's width or the form's width. It is about all the columns width to minimize the horizontal scrollbar, but not necessarily hide it.</p>