How to add details to entity grid and auto choose page size

Yep… Is there anyway to have an expression to only include the line if there is a value? For example I have a field in my entity which is Points which is default blank until they buy something however in the entity grid it looks a bit werid to see

Not tried but you could try [ ] like on ticket templates but doubt that will work.
Ternary expression would probably be more likely if that were to work. Pretty sure ternary works in button headers…

If not you would need to devise an additional states for with points or without points

Its really not worth making more states. Quick question how would you go about changing the state of an entity if the account balance is postive or negative

Might be good if you provide an explanation/example of what you intend to do.

Have the entity grid red if the account is in negative balnce and have it green if the account has postive balance

You cant format with multiple states so you would apply you template to a format for positive and negative states and update these states in some way.
Account transaction rule maybe.

Or you could try using ternary expression and a <block> formatting tag.
Have seen these used on button headers but not sure if works on entity screen.
Try just the bock expression to overide the entity state colour set, then see if it will work in a ternary expression based on account balance.