List Info

Thread: Change in Display values in Boolean DataColumn in DataGridView




Change in Display values in Boolean DataColumn in DataGridView
user name
2006-06-27 09:22:06
hi guys,
it's me again. now days i'm learning DataGridView of .NET
2.0. i found
that some of the features are quite attractive but sometimes
they are
not easy to modify and from that point our problem starts.

i've one bit column in my table in SQL SERVER 2000
Database. the
DataGridView displays it as "True" or
"False". what i want to do is, i
want to make it display "Yes" or
"No" instead.

i don't know what to do. As this is my first experience
with asp.net
2.0 and before i've only done such thing in .NET 1.1 for
desktop
application.

can someone please tell me how can i do this in asp.net 2.0
DataGridView?

i'm using SQL SERVER 2000 and .NET 2.0

Thanks,
Lucky


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at http
://groups.google.com/group/DotNetDevelopment
-~----------~----~----~----~------~----~------~--~---

Change in Display values in Boolean DataColumn in DataGridView
user name
2006-06-28 06:04:14
Hi,

This can be achive very easily with OnItemDataBound  event
of
DataGridView, you tell me which language are you using may
be I can
provide you with sample code if you want


Regards,
Nick
Lucky wrote:
> hi guys,
> it's me again. now days i'm learning DataGridView of
.NET 2.0. i found
> that some of the features are quite attractive but
sometimes they are
> not easy to modify and from that point our problem
starts.
>
> i've one bit column in my table in SQL SERVER 2000
Database. the
> DataGridView displays it as "True" or
"False". what i want to do is, i
> want to make it display "Yes" or
"No" instead.
>
> i don't know what to do. As this is my first
experience with asp.net
> 2.0 and before i've only done such thing in .NET 1.1
for desktop
> application.
>
> can someone please tell me how can i do this in asp.net
2.0
> DataGridView?
> 
> i'm using SQL SERVER 2000 and .NET 2.0
> 
> Thanks,
> Lucky


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at http
://groups.google.com/group/DotNetDevelopment
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )