Hi,
I'm having trouble setting the NameColumnWidth attribute of the xamPropertyGrid to Auto, I believe it requires a double only. Ideally I'd like it to be Auto so that it sizes to fit the full property names without the user having to do any resizing.
Regards,
Tom.
Hi Tom,
That is correct. The NameColumnWidth attribute requires double values. In order to set the width of the elements to auto resize or to apply custom logic for calculating the value you can modify the ColumnDefinition of the PART_DisplayNameBorder parent grid. I have shared a sample application to illustrate the behavior.
Hi Maria,
Thanks for your post, I'll make use of this solution. I was hoping for a solution similar to my example below where the first column sizes to the largest value, but if the control does not have this ability I'll stick with what you have suggested.
Many Thanks,
You can add a product idea for adding the size-to-content functionality as a build-in future in one of our future versions at: http://ideas.infragistics.com. You can review the progress of your suggestions or vote for existing ones there.Let me know if I could assist you with anything else.
Thank you for the update and for adding this as a suggestion.
Thanks a lot, I've posted a new idea for the xamPropertyGrid. For now I'll use your suggestion.