Home > Net >  Datagridview control row shows too much content, drag the display is not complete
Datagridview control row shows too much content, drag the display is not complete

Time:10-04

Datagridview control row shows too much content, show only the part of the lower part of a display not to come out, drag the scroll bar is useless, for a great god how to solve the
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 list

CodePudding user response:

First of all thank you for the above two answers, but I don't mean to vertical display complete, not across the
Like 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 content

CodePudding user response:

Bumps, are there any good method

CodePudding user response:

Word wrap. 11

CodePudding user response:

Increase the scroll bar, the outer Panel

CodePudding user response:

reference 7 floor XBodhi. Response:
add a scroll bar, the outer sleeve Panel

Don't quite understand, can point in detail, is the whole datagridview set up?

CodePudding user response:

You do this, to inherit the Column that you control, then add to it with other controls, or redrawn, is ok,
  •  Tags:  
  • C#
  • Related