WinApp DataGrid COlumn AutoWidth

  • Thread starter Thread starter Dmitri Shvetsov
  • Start date Start date
D

Dmitri Shvetsov

Hi,

Is it possible to adjust a column width of a datagrid column in a WinApp? I
know how to do that in a WebApp, but a WinApp is still a problem for me. Do
we have this method/property to activate an autowidth feature?

Thanks,
Dmitri
 
Hi Dmitri,

Winforms datagrid contains a set of styles, which are stored in a collection of DataGridTableStyle's. From that, you could obtain the DataGridColumnStyle for the required column you need. Set the Width property of this object to the value you want.

HTH,
fbhcah
 
Hi,
Winforms datagrid contains a set of styles, which are stored in a
collection of DataGridTableStyle's. From that, you could obtain the
DataGridColumnStyle for the required column you need. Set the Width property
of this object to the value you want.

There is no Autowidth property there, am I right?

Dmitri
 
Back
Top