Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1775
Subscript and Superscript in Unboundfield
posted

Hi,

In xamdatagrid, I have a column which is of type unbound field and  that values should display values in subscript and superscript format. Say for a example, Chemical formula or mathematical formula. Please help, how I can achive this.

Thanks in advance,

Sasikumar

Parents
No Data
Reply
  • 2515
    Offline posted

    Hi Sasikumar,

    What you need to do in such a case is to write a control that reads your data and create a structure of TextBlocks and set the different TextBlocks with different margin, so you can simulate sub/super-script.

    After that you can use this control in the UnboundField template.

    Or you can generate the DataTemplate using Converter.

     

    Thanks,

    George

Children