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
40
UltraGrid rows
posted

Hello,

I have an UltraGrid which I display 5 rows in. When my 5 rows are bound, there is an useless space below the last row.

So here is my question, is there any Infragistics property to set, which enable me to quit this useless space ?

How can I ensure that all my rows are displayed inside the whole visible row-layout height ?

I've tried to do it dynamically dividing the sum of the row-layout height by the number of displayed row but a piece of the last row is hidden by the ultragrid's bottom border.

Any easier solution ?

Thanks for your answers.

 

Rivo

Parents
No Data
Reply
  • 19380
    posted

    Hi Rivo,

    There is no property to auto-height the rows.  To display something other than the white space, we have the EmptyRowSettings under DisplayLayout which has an EmptyRowSettings.Style property.  The values in the enum are:

    • AlignWithDataRows
    • ExtendFirstCell
    • ExtendRowSelector
    • HideRowSelector
    • PrefixWithEmptyCell

    It looks like this in code:

    ultraGrid1.DisplayLayout.EmptyRowSettings.Style = Infragistics.Win.UltraWinGrid.EmptyRowStyle.ExtendFirstCell

    We added this to accomodate for the use case you seem to be describing. Let me know if this helps, we can put a feature request in to auto-height the rows based on the grid height if that is what you are asking for, but that seems pretty edge case to me, unless I am misunderstanding what you are after.

    Let me know any more details or if this helps,

    Thanks

    Jason

     

     

Children