Hi, I've seen tonnes about this on the internet so i've been through everything on google! But still I can't figure this out.
No matter what I do I can't seem to consistently set the column widths on my gridview. In the RowDataBound event I have added the following code
e.Row.Cells(6).Width = 200
And, that did seem to work... briefly. In one query I run, it works, but when I extract a different set of data into the same table it inexplicably stops working. There is no difference between the two queries, except that the second one is extracting a lot more data.
think i may need to bind the columns first before binding the data (sort of like in http://www.codeproject.com/KB/aspnet/dynamic_Columns_in_Grid.aspx
) but I so far haven't been able to get that working...