Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
950
UltraGridBands out of synch with datasource UltraDataBands
posted

I have application that creates/removes rows and UltraDataBands in my UltraDataSource but very quickly my ultraGrid gets out of synch with the datasource. When I examine ultragrid.DisplayLayout.Bands collection it has multiple duplicated entries with the same key which I believe cause the problem. In my case I assign RowLayout to a band "Involuntary Assumptionnt" and it works fine the first time when there is only 1 grid band with that key in the DisplayLayout.Bands collection. After I remove and add back that band and rows several times I have multiple identical grid bands in DisplayLayout.Bands and RowLayout does not show up in the grid.

Here is a copy of my ultragrid.DisplayLayout.Bands view in the Watch window - notice identical bands  #3, 4 and 6

-        ultraGrid1.DisplayLayout.Bands.All    {Infragistics.Shared.IKeyedSubObject[7]}    object[] {Infragistics.Shared.IKeyedSubObject[]}
+        [0]    {Band 0}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}
+        [1]    {Prepayment Assumption}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}
+        [2]    {Involuntary Assumption}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}
+        [3]    {Involuntary Assumptionnt}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}
+        [4]    {Involuntary Assumptionnt}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}
+        [5]    {MIAC RowLayout}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}
+        [6]    {Involuntary Assumptionnt}    object {Infragistics.Win.UltraWinGrid.UltraGridBand}

I'm not sure if I'm doing something I'm not supposed to or it's a bug or what but I spent nearly a week banging my head against the table trying to figure this one out.

Please help.

Parents
  • 469350
    Offline posted

    Hi Lev,

    Can you provide a small sample project demonstrating this behavior? Without a sample, I don't see any way I could even begin to guess how this might happen.

Reply Children