Groups | Blog | Home
all groups > vb.net > february 2005 >

vb.net : Webform datagrid column width


PLSH
2/1/2005 11:07:03 PM
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

Chris Podmore
2/2/2005 1:47:02 AM
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.

[quoted text, click to view]
AddThis Social Bookmark Button