Home > Net >  WPF datagrid to remove the last blank column
WPF datagrid to remove the last blank column

Time:10-13

HorizontalAlignment="Left" and VerticalAlignment="Top"

CodePudding user response:

Like this Width="*" ok

CodePudding user response:

What do you mean? When the column not value you want to hide this column or would you think this is a list of extra don't want this column

CodePudding user response:

Custom Columns show, define the Columns will be AutoGenerateColumns set to false,

CodePudding user response:

refer to the second floor rabbit family - second brother reply:
what do you mean? When the column not value you want to hide this column or you would think this is a list of extra don't want the column of

When unable to fill the whole controls the width of the column, also can say no scroll bar control, automatically add a blank column fills the entire control

CodePudding user response:

reference exception92 reply: 3/f
custom Columns show, define the Columns, the AutoGenerateColumns set to false,

Custom columns show, if the width of the column is not enough, there will be a blank column

CodePudding user response:

reference 1st floor ManBOyyy response:
like this Width="*" ok

So I can, but if you only have two columns, and the content of each column is very short, but control is very wide, doesn't look nice
  •  Tags:  
  • C#
  • Related