473,387 Members | 3,750 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,387 software developers and data experts.

web Datagrid .net 2.0 - How to mask values

Hi Guys,

I have created a datagrid in code, in which I have a column for deleted

BoundColumn column2 = new BoundColumn();
column2.DataField = productsAdapter.Log().DeletedColumn.ToString();
column2.HeaderText = "Deleted";
DataGrid1.Columns.Add(column2);

This works fine and displays in the DataGrid 0 for non-deleted items and 1
for deleted items

My challage is that I want to display No for 0 and Yes for 1.

Whats the best way to do this?
Jun 21 '07 #1
0 963

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

Similar topics

9
by: Paul | last post by:
hi, is there an input mask i could use on a report to do the following: (1) if i enter "THISISATEST" on my form, i want the text box on my report to display: "T H I S I S A T E S T". (2) if...
1
by: Wayne | last post by:
I have a datagrid that will display data, and based on the security level of our user's they may not be able to see the data. However, I still want the column to appear in the grid and just mask...
2
by: Mervin Williams | last post by:
I am trying to set the text property of one of my labels in a data grid to the value of a text box in the same datagrid. Please help! Mervin Williams
3
by: Tina | last post by:
I have a datagrid where I specified {0:###,###,###} at design time. However sometimes I am putting percentages in the grid instead of money and I want to change the formating to {##%}. I've...
3
by: masoud saeida | last post by:
hi, is there any way to use mask control in data grid?
0
by: cindy | last post by:
I have a dynamic datagrid. I have custom classes for the controls public class CreateEditItemTemplateDDL : ITemplate { DataTable dtBind; string strddlName; string strSelectedID; string...
2
by: stoned99 | last post by:
Dear .NET experts: Hi, I have a table bound to a grid with a column that can contain either SSN or TAX-ID. Based upon the content of the cell I want to apply either the mask 00-00000 or...
9
by: rn5a | last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB table. Users can modify the records using this DataGrid for which I am using EditCommandColumn in the DataGrid. This is the...
0
by: jmarr02s | last post by:
I am using the following input mask 00\-A0000000. The values entered using this input mask will have one of the following formats: 14-X1234567 OR 14-1234. What must I change on the textbox...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.