Webform datagrid column width

G

Guest

Good day,

I hope some one can help. I would like to programmatically set the width of
my webform datagrid columns. Preferably to a set width or otherwise to
autofit the entire datagrid. Please can some one help me

Thanks in advance.
 
G

Guest

You may be better looking in
microsoft.public.dotnet.framework.aspnet.datagridcontrol

But from memory I think it's something along the lines of:
DataGrid1.Columns(0).HeaderStyle.Width = Unit.Pixel(200)

Hope this helps.
Chris.
 

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

Top