This is a migrated thread and some comments may be shown as answers.

Displaying String instead of boolean value

3 Answers 139 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Empanada
Top achievements
Rank 1
Empanada asked on 31 Dec 2011, 02:58 AM
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 :)

3 Answers, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 03 Jan 2012, 01:04 PM
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).
0
Suresh
Top achievements
Rank 1
answered on 15 Nov 2012, 09:41 AM
Hi Guys ..
             I am also face this problem .... still i can't find solution ...please help me...
0
Emanuel Varga
Top achievements
Rank 1
answered on 15 Nov 2012, 10:46 AM
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
Tags
GridView
Asked by
Empanada
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Suresh
Top achievements
Rank 1
Emanuel Varga
Top achievements
Rank 1
Share this question
or