Chris128
Chris128

Reputation: 51

Infragistics XamGrid with different row heights

I have a XamGrid that I've got displaying several dynamically generated columns, and one of those columns can have a listbox in it that sizes itself according to how many items are in it (but has a maximum height constraint). I want each row of the XamGrid to basically only be as large as it needs to be - which they are at first, but after scrolling up and down the contents of the grid a bit I find that rows that had hardly any values in the listbox (so should be fairly small in height) are now the same height as the largest rows I've scrolled into view previously. The result is a lot of wasted space, so I'm wondering if anyone knows of a way to make it so that the rows don't automatically resize themselves to match the largest row that has been loaded. I've tried taking a look at the control template but all I see in it are 3 parts and can't see any way to edit or look inside those parts.

PS I would have posted this on Infragistics own support forums but I can't for the life of me actually find any way to post new topics on there even when signed in with my IG account... great design.

Thanks Chris

Upvotes: 0

Views: 2790

Answers (1)

user3905888
user3905888

Reputation: 21

Set the RowHeight property to Dynamic. That should take care of the issue for you.

<ig:XamGrid RowHeight="Dynamic" ... >

Upvotes: 2

Related Questions