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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top