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
35
UltraWinGrid hangs when UltraGridBand.MaxRows and AllowNewRow.TemplateOnBottom are set
posted

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.

Parents
  • 469350
    Verified Answer
    Offline posted

    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.

Reply Children
No Data