I have a SL4 xamGrid 10.3 that has it's ItemSource set to an EntitySet returned from a DB. The xamGrid lives inside a ScrollViewer.
In this particular case the ItemSource has 0 (zero) rows. When the HorizontalAlignment is set to Centered the xamGrid is displayed as a vertical line. If I set the HorizontalAlignment to Left all column headers are displayed, of course left justified with no rows.
I need to have it centered with the header rows showing. How can I do that?
thanks
Correction. If I set the grid's HorizontalAlignment to Stretch it works fine, albiet left justified. Anything else seems to show just a vertical line.
Hi,
I tried but I am unable to reproduce your issue.
Could you paste the code that you are using?
Also, could you let me know which are the parent controls of the ScrollViewer all the way to the root?
Have you tried the same scenario with a normal collection for ItemsSource?
Thanks,