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
15
Ultragrid Level 3 band not Visible
posted

The ultragrid that I am working has three level bands in it and for some reason the Level 3 band is not visible.
I am using ultraDataRow.GetChildRows(childBandName).SetCount(5) to create new rows on the grid.
On click of a button column on a row(Level 2), I am doing the following.
1. Get the DataRow object using the row.ListObject of the current row
2. Set the count to currentDataRow.GetChildRows(childBandName).SetCount(5)
3. Set the row.Tag with the actual class object in the InitializeDataRow event
4. OnCellDataRequested event, the column data is set for all the rows
5. I am able to peek the data in the InitializeRow event of the Grid while debug

but the new band is not visible after all the above.

Points to Note:
1. Level 2 band works perfectly fine, added a new band to level 2 and it is visible but the issue is only with Level 3 band
2. Checked the Band visibility properties in InitializeRow event and the band is not set to hidden
3. Developed a sample application on the same machine and Level 3 is visible without any issue

Please suggest what else to check.

Parents
  • 29105
    Offline posted

    Hello, 

    In order to add a row per band you would use the AddNew method like so:

    uwGrid.DisplayLayout.Bands(3).AddNew()

    Please try this and let me know if you have any issues. For more details please visit: Adding Rows to WinGrid Programmatically

    Also, it would appear that you are loading your data asynchronously, is this correct? 

    Please provide a sample demonstrating the behavior or relevant code. The behavior you described is not familiar.

    Let me know if you have any questions.

Reply Children