This problem is mainly due to the datagridview itself every line, according to the head so the beyond part is not shown in the line, what method can let the datagridview
Scroll the contents of the line
CodePudding user response:
This. DataGridView1. AutoSizeColumnsMode=System. Windows. Forms. DataGridViewAutoSizeColumnsMode. The Fill;CodePudding user response:
First of all, you want to know what element is either set the width or according to the content of the element to maintain full width, only 2 minutes to choose, if you find that it is necessary to add a div outside the datagridview, then div overflow - x=scroll, the style is refers to the x axis part beyond: rolling, div and datagridview must set width, otherwise unable to take effect, the gridview width must be greater than div width, if you want to put a column in a row to scroll to open the developer tools to obtain the id by js to make a listCodePudding user response:
First of all thank you for the above two answers, but I don't mean to vertical display complete, not across theLike I've been enter a row, a total of one hundred lines, show only a 50 lines like this
CodePudding user response:
Consider another way, such as only in datagridview show preview, again in another form with a textbox display contentCodePudding user response:
Bumps, are there any good methodCodePudding user response:
Word wrap. 11CodePudding user response:
Increase the scroll bar, the outer PanelCodePudding user response: