Can't scroll to bottom of cell in datagridview

My datagridview has one cell containing quite a few lines of text: enter image description here

If you notice in the image, the scroll bar is at the very bottom at the bottom, but if you look closely at the Text cell, text appears that is not fully displayed. I am using this code (below) to automatically format rows in a grid:

// Autoformat of cells.
this.dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells;

      

What else can I try to make all the text visible in the cell?

+3


source to share


1 answer


In your image, we can see that the scrollbar is relative to the form, not the datagridview.



Change the property Dock

from DataGridView

to DockStyle.Fill

to see the datagridview scrollbar instead of the form.

+3


source







All Articles