Hi,
I have a problem using an UltraDataSource instance with different data schemas at runtime. I do not know a designtime how many columns and their names i have to show on the first level of my datagrid. For that i inspect the first row of my datasource and create the schema dynamically at runtime.
this.invalidDataSource.Band.Key = customer.Name;
{
}
childBand.Columns.Add(CsvReader.ErrorTag, typeof(string));
The invalidDatasource is the Datasource of an UltraWinGrid.
When i load the data the first time, all works as expected. I get 2 bands in the grid. One with the key customer.Name and one with the key CsvReader.ErrorsTag.
But when I invoke this code a second time, i suddenly get 3 bands in the grid. one with the key customer.Name and twice with the key CsvReader.ErrorsTag. One of this bands contains the expected column CsvReader.Error and the second contains all columns of the customer.Name band.
The UltraDataSource contains only the two correct bands.
What I am doing wrong. Can anybody help me, or is this a bug. We are using version 6.3
Thanks very much
Andreas
Hi Andreas,
I don't see anything wrong with this code, this sounds like a problem in the grid. Are you using the latest Hot Fix?
If that doesn't help, I recommend creating a small sample project that demonstrates the behavior and Submit an incident to Infragistics Developer Support
Thanks for your answer.
I found a workaround for the problem. Iam hosting the grids in a usercontrol, and create this by every new import.
Before i will submit an incident, I check this behaviour with the 8.1 assemblies.
regards
andreas