Hi,
I have an UltraWebGrid. I set the column width by code from VB.NET using the following code:
col = gObjects.Columns.FromKey("ShowInObjDictionary")col.Width = 150and so on for all the visible columns. When the grid is shown in execution the headers don't have the width set by code (the columns showing data yes)
If I click on the header to change the width it is fixed... How can I refresh the headers widths so they are shown ok the first time?
Thanks,Fernando
More info:
I printed the ”.key” of the column being changed and it is ok. I tried to hide a column in the middle of the grid. If I hide the 4th column, the 1st, 2nd and 3rd are shown ok, but the column 5th and 6th are shown with wrong width. If I move the hidden column at the end of the columns list, the grid is shown ok
Regards,
Comparing two images of the system in execution I found that the column header width is applied to the next column in the columns list if the first column is hidden, so I tried setting width = 0 and removing hidden property and it worked fine… (If I use hidden and width = 0 it doesn’t work). I moved the hidden column at the end of the columns list and I think it is working fine now. But I want to know if there is another better solution
Fernando