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
435
Selectively Hide 2nd Row using RowLayout or Group Levels?
posted

I'm hoping there may be a way to use RowLayout or Group Levels to accomplish the following. 

I have a record of data that is broken into 2 rows currently in the ultrawingrid.  The second line is a notes field.  If the notes field is blank I want to suppress the second line of the record until the user selects the row.  I'm looking for an event/property that will allow me to selectively expand/contract the second line of a record when using the RowLayout or Group Levels.  Is this possible with either?

Thank you for your time.

 

  • 469350
    Suggested Answer
    Offline posted

    HI Kurt,

    No, there's no way to do that.

    You might want to use the RowAutoPreview, instead of a real cell, though. What you can do is hide the column that contains the second line data. Then turn on the RowAutoPreview on the Band. The AutoPreview will only display for a row if the column it's tied to has data in it. So you could create an unbound column and then trap the BeforeRowActivate and BeforeRowDeactivate. You would use the unbound column as the RowAutoPreviewField. When the row is activated, you copy the data from the real hidden column into the unbound hidden column, this showing the AutoPreview for the row. When the row is deactivated, you clear out this field to the AutoPreview is hidden.