Hi,
I have a webgrid in which I am using fixed column widths (the same behavior occurs when I use unfixed widths too). It seems to me that when I leave a page and come back to it, the ordering of the columns is the same as before (any changes in the order of the columns, moving fields left or right, etc). The issue occurs when occassionally I resize a column or change the order, go to a different page (in my case, I click Menu Home), then return to the page. It appears as if the first 2 columns are taking up the entire space. The rest of the columns are "accordian"ing at the end. When I manually resize the columns to where I can see them all again, go to a different page, and come back, the two columns are there and the rest are accordianed.
Where is it storing this display information, and how do I clear it out. I want the exact same thing to show up every time a user visits the page, whether or not he or she has changed the column order previously.
Thanks,
Jud
Hello jkillion,
Have you set the default width for columns in the grid?
Patrick
I have this code:
grdUnit.Columns.FromKey("UNITNUMBER").Width = New Unit("60px")
Is there where else I should set the default width?
I just cleared out my browser temporary files and it fixed the issue. Now if I can just keep it from happening again then we will be cookin with gas.
Hi, Tried setting that to no avail. Does anyone know where it stores the previous layout of a grid, and how I can clear that out or just ignore it when I reload the grid?
Yeah try setting this property and see if it does the trick,
grdUnit.DisplayLayout.ColWidthDefault
Good Luck,