DataGridView - how to set column width?

后端 未结 13 2327
情书的邮戳
情书的邮戳 2020-12-13 23:58

I have a WinForms application with DataGridView control. My control has five columns (say \"Name\", \"Address\", \"Phone\" etc)

I am not happy with defa

13条回答
  •  星月不相逢
    2020-12-14 00:42

    or Simply you can go to the form and when you call the data to be displayed you set the property like datagridview1.columns(0).width = 150 datagridview1.columns(1).width = 150 datagridview1.columns(2).width = 150enter code here

    So simple worked so fine with me Bro

提交回复
热议问题