473,396 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1131
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
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,...

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.