In order to fit column width to the content of the cell you can use the FitColumnWidthToContent
method of the RadVirtualGrid. The FitColumnWidthToContent method receives the index of the column, you want to fit to its content. In order to enable this functionality you need to set the MeasureTextOnRender
property of the RadVirtualGrid to "True". You can read some more about that in the Getting Started
article in our documentation.
As for conditionally setting the TextAlignment, it is currently not supported. This is why I have logged in a feature request for you in our feedback portal
where you can vote for it and track its progress.
I hope you find this helpful. Let me know if I can be of any further assistance.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.