471,356 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Convert a data value in datagrid before displaying

I have been around the houses with this problem and see a few
solutions but surely there is a nice neat way for me to solve this...

Summary:

A page that binds data to a datagrid via the datacolumn method:

<ASP:BOUNDCOLUMN datafield="Access" headertext="Access"
ItemStyle-HorizontalAlign="Center"
HeaderStyle-HorizontalAlign="Center"></ASP:BOUNDCOLUMN>

The data is bound in the code behind.

The Access field from the database is set to either 0 or 1, which does
not really mean much to the users so I would like to convert this to
"User" and "Admin"..

Surely an easy solution, but cant find it!... was really impressed
with the last posting I had and had lots of replies.. many thanks for
that and hope that someone can point me in the right direction with
this one.

Cheers

Rich
Jul 21 '05 #1
0 1017

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by sunstarwu | last post: by
3 posts views Thread by vinayak | last post: by
3 posts views Thread by Vu Doan Hung | last post: by
5 posts views Thread by manmit.walia | last post: by
6 posts views Thread by p.mc | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.