One suggestion will be to declare statically the two Grid controls - one in CardView mode, and one in a ListView mode. Then, depending
on the preferences of the end user, you can toggle on/off the
visibility of the controls and show only one of them.