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
305
xamDataGrid + present an integer as a boolean- conversion
posted

I am working with an existing database for a client. They have in VBA used int type for a field (0,-1) and managed to bind to a checkbox. They should have gone with the bit type.

Is there anyway I can do some conversion here in xaml or code behind as binding takes place?

I've done similar is ASP.NET

Thanks in advance

  • 69686
    posted

    Yes, there. You should create a class that implements IValueConverter and apply that converter to the Converter property of the Field ( the one you wish yo display checkboxes in).