We have a LoadOnDemand grid bound to an ultra data source. At midnight we wipe the grid ready to start the new day. We achieve this by in the UltraDataSource we call Rows.Clear().
When we do this we notice that when we add a new row there are no visible columns, they have to be added from the column chooser. If i load the same layout that was loaded before, it displays correctly. Can you help us understand why the layout gets wiped when we seem to be wiping the rows underneath?
Hello grasshopper,
I tried this scenario and was not able to reproduce it. Could you please review the sample attached to my post. If this issue still persists, I will be glad to take a look at a sample of your own. If you want me to do so, you could attach your project by clicking on the 'Options' tab above(when you are writing your post) and then browse to your zip file through 'Add/Update'.
Please feel free to let me know if I misunderstood you or if you have any other questions.
Having seen your example I went away to work out why our layouts might be disappearing and realised that when we null our datasource it removed all the layout information. But when we rebound the datasource the layout was defaulted. We have since worked around why we null the datasource.
Thanks for your help.
Hello,
Something like this came on my mind when I read your first post, however I was not sure what is the issue exactly. So I am very glad that you were able to resolve this. If you need any assistance, please do not hesitate to contact me again.