DataGrid Column Width Problem
I have one column out of eight on a DataGrid that seems impervious
to my settings before or during run-time. I have set it in the Property Builder to pixels and to a percentage; likewise in th HTML code. I set its HeaderStyle column width as well. I have tried to set it in the ItemDataBound and ItemCreated events i.e.
e.Item.Cells(2).Width = New Unit(80, UnitType.Pixel)
It remains way too large for for what is contained in it. The column's data is read from SQL server 2000 table. The field is defined as varchar, 35 bytes, allow nulls. The column is set to wrap.
My percentages add up to 100%, and when I try pixels I make sure they add up to the total width of the grid. My other columns behave normally.
I get the feeling that my problem is something simple. Something like a can't see the forest for the trees thing. I have run out of ideas. Does anyone here have any they could share?
Thanks in Advance,