473,473 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataGrid: Text instead of Number

Hello!

I have a form with a DataGrid, which is bound to a DataView, which
comes from a Database. No other fancy settings...

myDataGrid.DataSource = myDataView

My DB-Table has a Column "salutation" with the possible values 0 (which
means for me "Mr.") and 1 (which means for me "Ms.").

Now the DataGrid shows these Number-Values. How can I replace this
Number with the Text-Value?

btw... editing is not necessary; datagrid is readonly.

Bye,
Frank Neumai

PS: Sorry for this simple question, I'm a beginner. And sorry for bad
Englisch, I'm from Germany. (where the weather is great atm. ;>

Nov 21 '05 #1
5 1132
Frank,

We have two complete different samples as solution for your problem on our
website.

Direct
http://www.windowsformsdatagridhelp....1-5f34a9efef7b

Using expression
http://www.windowsformsdatagridhelp....1-5f34a9efef7b

I think that both can give you idea's

I hope this helps,

Cor

Nov 21 '05 #2
The second link is the same as the first,

I did not copy and paste well, correction

http://www.windowsformsdatagridhelp....3-a3539697edbd
Cor
Nov 21 '05 #3
Frank,

We have two complete different samples as solution for your problem on our
website.

Direct
http://www.windowsformsdatagridhelp....1-5f34a9efef7b

Using expression
http://www.windowsformsdatagridhelp....1-5f34a9efef7b

I think that both can give you idea's

I hope this helps,

Cor

Nov 21 '05 #4
The second link is the same as the first,

I did not copy and paste well, correction

http://www.windowsformsdatagridhelp....3-a3539697edbd
Cor
Nov 21 '05 #5
Thank you, Cor.
Your examples helped a lot!

Nov 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark | last post by:
I need some advice on how to acheive the desired result of my custom page link generation. The datagrid 'built-in' page navigation only allows either the 'Prev/Next' or the page numbers. ...
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
1
by: aylin_sk | last post by:
I'm trying to list my data into my datagrid creating stored procedures in oracle db..My data includes questions for a survey....It's simple but i cant see my datagrid in my web form..I'm now going...
1
by: reiks | last post by:
Do we any computed column for the datagrid? Do we any expression property for the datagrid columns? My requirement is I ought to bind the following expression at design time if(au_lname=="",'...
1
by: Larry Rekow | last post by:
Using: MS SQL, VS.Net 2003, VB.Net Each night our SQL db imports two text file reports into two tables: Table 1 has info on various shipments (shipment number, date, destination, etc.) Table 2...
9
by: tshad | last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is filled? I have a bunch of DataGrids that get displayed nested inside a DataList. The datagrid looks like: ...
1
by: Stu | last post by:
Hi, I have a button in the footer of a datagrid that sometimes does not tigger the item command. The page is quite large & has a number of homegrown controls in it. Has anyone come across this...
5
by: Genojoe | last post by:
I am using code from Help with two exceptions. (1) I increased the number of sample rows from 3 to 20, and (2) I anchored the datagrid to bottom of form so that I can change the size of the grid by...
0
by: Frank Neumai | last post by:
Hello! I have a form with a DataGrid, which is bound to a DataView, which comes from a Database. No other fancy settings... myDataGrid.DataSource = myDataView My DB-Table has a Column...
9
by: Steve | last post by:
How I can remove an AutoGenerated column? I wnat to inlcude the primary key in the resultset for creating some custom LinkButtons, but I don't want it (the PK) displayed in the DataGrid. I tried...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.