I have an UltraWinGrid with two bands. The BindingSource is dynamic and the grid needs to update periodically as new data comes in.
Whenever the updated data requires a new row in Band 0, it gets added at the top and pushes the other 0 level data down, which is fine. But the last 0 level row and its 1 level data disappear off of the grid. I check the datasource and that data still is in the collection, but no longer appears in the grid. Additionally added 0 level rows continue to push the existing data off of the grid. Is there some setting that does not allow the top level data to grow? I saw that there is an "AllowNew" property on the BindingSource, but setting that to true does not make any difference.
Has anyone else seen this behavior? Were you able to fix it?
I was able to figure out a solution to the issue but I don't really think it was related to the issue itself.
Basically, rows were being added to the Collection behind the scenes, not through the Interface. The new data would appear at the top and push the existing record at the bottom out of the grid. It still existed in the underlying collection, but it no longer displayed. I don't know what was causing this but it was very odd.
The problem went away when I realized that someone had changed my BindingList collection to a standard List. Once I switched it back to a Binding List, the data began to populate correctly without dropping off the grid. Like I said, my problem is solved but it was not due to understanding the underlying problem.
Hi,
I'm afraid I don't really understand what you are describing here.
How exactly are you adding the rows to the data source? Normally, when you add a new row, it will show up at the bottom of the grid, not the top. So it's impossible to discuss the issue without knowing what your code is doing to acheive this.
Also, what exactly is happening? Is the new row replacing the existing row that was at the top? Or do you mean that the grid is simply scrolling rows out of view?
AllowAddNew determines if and how the user can add new rows to the grid, so that doesn't seem like it has anything to do with the issue you are describing.
If the issue is too difficult to describe in works, then perhaps what you should do is create a small sample project demonstrating the issue and Submit an incident to Infragistics Developer Support.