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
585
Boolean Converter
posted

I have a xamGrid that is bound to a table with a column that is a boolean. Of course the value is displayed as true/false and I need to have it displayed as t/f. How to I do this?

  • 6759
    Verified Answer
    Offline posted

    Hi stevedm,

    You can use TextBoxColumn and and provide value converter:

            <ig:XamGrid x:Name="igGrid">
                <ig:XamGrid.Columns>
                    <ig:TextColumn Key="BoolData"
                                   ValueConverter="{StaticResource boolConvertor}"/>
                </ig:XamGrid.Columns>
            </ig:XamGrid>


    If this is not what you want you could use Template column and provide specific data template.

    Here you can find more information on the grid's columns.

    Hope this helps.