I deduce the data from the database in the DataGridView, but the long line in the database takes about 200 characters, but it doesn’t take that much in a line. Because of this, an ellipsis appears in the DataGrid (see screenshot).

alt text

How can it be removed?

    2 answers 2

    Set the AutoSizeRowMode property to AllCells (if you need the entire row to be visible), and in DefaultCellStyle the WrapMode property to True.

    • Thank you very much! Not quite what I needed, but when I tried, this option turned out to be even better! - Jembo_by

    And why do you need fixed-length strings in the database?

    • To be honest, I have little experience in designing a database. However, it seems to me - it is more convenient and safe in terms of outputting data to a form. - Jembo_by pm