Hello,
I bound a DataSet to an UltraWinGrid and set the MaxRows attribute for some Bands.
The DataSet has a table structure like this:
[Article]
[Price][Description]
where Description.MaxRows is set to 1 so that one article may have only one description element.
Now if the DataSet is filled with three articles for example, and one of these articles has a description, the grid hangs if I try to expand this row.
I found out that this only occurs If the DisplayLayout.Override.AllowAddNew attribute is set to TemplateOn...
I have also a general question to this topic:How does the Grid count the Rows for the MaxRows constraint? Because of the references to parent tables the bounded DataTable itself can contain more rows as limited in the Grid by the MaxRows attribute.
This sounds like a bug to me. The grid should not be locking up, it simply should not be displaying the TemplateAddRow for the band, since there are already more rows than are allowed.
I'm going to forward this thread over to Infragistics Developer Support so they can check it out. They might ask you to provide a small sample project demonstrating this behavior if they cannot reproduce it themselves.
it2mEngelhardtJo said:I have also a general question to this topic:How does the Grid count the Rows for the MaxRows constraint? Because of the references to parent tables the bounded DataTable itself can contain more rows as limited in the Grid by the MaxRows attribute.
I could be wrong, but I assume that MaxRows refers to the maximum number of rows in any island of data. That is, it's the maximum number of child rows under each parent row - not the total number of rows in the table.
It seems really to be a bug in version 7.2. Since last Friday we shifted to 9.1 and it works.
Thank you all for your help and hints,
Greetings,
Joachim