Displaying String instead of boolean value

4 posts, 0 answers
  1. Empanada
    Empanada avatar
    6 posts
    Member since:
    Sep 2011

    Posted 30 Dec 2011 Link to this post

    Hi guys
    I used a radgridview autogenarated through binding in a dataset
    I have a column "Gender" that displays boolean values 1 and 0
    Instead of displaying 1 and 0, I want to display a "male" or "female" values
    Is there any way without changing the datatypes in the database?
    Im using vb.net language 
    Thanks :)

  2. Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 03 Jan 2012 Link to this post

    Hi Empanada,

    Thank you for writing.

    You can achieve this scenario by using the RadGridView column's DataTypeConverter property. You can read the following help article on Converting Data Types. There you will find an example and explanation of what you should do in this case. 

    I hope this will help. If you have further questions, I would be glad to assist.

    Kind regards,
    Ivan Petrov
    the Telerik team

    SP1
    of Q3’11 of RadControls for WinForms is available for download (see what's new).
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Suresh
    Suresh avatar
    1 posts
    Member since:
    Nov 2012

    Posted 15 Nov 2012 Link to this post

    Hi Guys ..
                 I am also face this problem .... still i can't find solution ...please help me...
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 15 Nov 2012 Link to this post

    Hello Suresh,

    Please open a new thread on your problem and post a small example if possible on how to reproduce your issue,

    I will do my best to help

    Best Regards,
    Emanuel Varga
    WinForms MVP
Back to Top