Whenever I refresh the data behind the web grid, all the customizations to the grid layout disappear. My hidden columns become visible, and my column headers revert to the database column names. I'm not calling rebind on the grid, just re-executing the sqldatasource select method.
What do I need to do to preserve the settings? If I have to reset the grid layout, which event should I do that in?
Jerry
cygerinc said: Whenever I refresh the data behind the web grid, all the customizations to the grid layout disappear. My hidden columns become visible, and my column headers revert to the database column names. I'm not calling rebind on the grid, just re-executing the sqldatasource select method. What do I need to do to preserve the settings? If I have to reset the grid layout, which event should I do that in? Jerry
We've had similar problems with the grid. For example, I have a search form with a grid storing the results below. If you do a search, the results are displayed. If you do something with one of the date controls, but instead of tabbing out, you click elsewhere on the page, the UltraWebGrid loses all of the data it's holding, and displays the design-time data used to format the grid. I usually do a test in the PreRender event handler for whether the grid is bound, and, if it's not, clear all the rows. That prevents the design-time data from showing up.
I am also seeing this issue. I have no code in my app, just using a SqlDataSource, and I am losing all the design time layout when the webpage displays. Does anyone come up with have a solution?
Thanks,
I just found the answer: to preserve design-time ultrawebgrid formatting set DisplayLayout.TableLayout = Fixed