Home > Net >  Multiple lines of text in a cell spacing in DataGridView how to adjust
Multiple lines of text in a cell spacing in DataGridView how to adjust

Time:09-25

For help, how to set up the DataGridView spacing of the word, not DataGridView spacing, but the space between the lines of text in line

CodePudding user response:

CodePudding user response:

You can be flexible word in each row, remove the certain cell line

CodePudding user response:

The width of the cell can be horizontal pulling, cell inside the text will automatically adjust after (a line of automatic newline), is the line spacing is too small, don't know how to adjust, stuck in here, I try to adjust the font, line is high, the effect is not very good

CodePudding user response:

In the code dynamic binding height try

 

for(int i=0; i {
This. DataGridView1. Rows [I]. Height=100;
}

CodePudding user response:

Finally found the solution: set the rowdefaultcellstyle font for Microsoft black, size of four (a) casually, can increase the cell text line spacing,
  •  Tags:  
  • C#
  • Related