Just remember, that whatever you do in the code, meaning whatever HTML it
produces, a browser on client's machine will consider it as a recomendation
rather than an instruction.
Since you can hardly be sure what width the browser will assign to your
columns, it's not a good idea to rely on exact column width in your design.
Eliyahu
"Saravana" <sa******@sct.co.in> wrote in message
news:e$**************@TK2MSFTNGP12.phx.gbl...
you can programmatically change width of the column like this,
datagrid1.Columns(0).ItemStyle.Width.Pixel(150)
or
datagrid1.Columns(0).ItemStyle.Width = new Unit(150,UnitType.Pixel)
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"frank" <fr***@frank.com> wrote in message
news:#m**************@TK2MSFTNGP12.phx.gbl... How do I set the column width of a column in a DataGrid programatically
(in ASP.NET web pages)?
I understand I may have to use DataGridTableStyle, but I can't get this
to work with web pages.
Any help would be appreciated.