Home > Net >  C # Winform DataGridView line problem
C # Winform DataGridView line problem

Time:10-19

Set the line
DataGridView1. AutoSizeRowsMode=DataGridViewAutoSizeRowsMode. DisplayedCellsExceptHeaders;
DataGridView1. DefaultCellStyle. WrapMode=DataGridViewTriState. True;
DataGridView1. RowsDefaultCellStyle. WrapMode=DataGridViewTriState. True;
DataGridView1. RowTemplate. DefaultCellStyle. WrapMode=DataGridViewTriState. True;
DataGridView1. AlternatingRowsDefaultCellStyle. WrapMode=DataGridViewTriState. True;
But that is not what I want effect, now the effect is as follows:

Can platform number is followed, until the last line

CodePudding user response:

Is column width, and the specific content, width is set to automatic, single number line after it
  •  Tags:  
  • C#
  • Related