473,396 Members | 1,942 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 Column Boolean Value Formatting

Hi

I have a Datagrid with a boolean column in it. I currently have it set
as a textboxColumn and not a checkcolumn. what I want to do is have it
say yes/no not true/false. Any suggestions?

Evan Brown
Nov 16 '05 #1
2 2524
Hi,

Override GetColumnValueAtRow and SetColumnValueAtRow to provide custom
formatting and parsing.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Evan Brown" <ev********@hotmail.com> wrote in message
news:1qMrd.266008$9b.104167@edtnps84...
Hi

I have a Datagrid with a boolean column in it. I currently have it set as
a textboxColumn and not a checkcolumn. what I want to do is have it say
yes/no not true/false. Any suggestions?

Evan Brown


Nov 16 '05 #2
ZS
Hi,
I have a boolean column in my datagrid. During runtime when I check the
checkbox there are actually Three states for the checkbox. So I have to
actually double click to change from true to false. is there a way in which I
can just click once and then when I check it toggeles. Something like setting
the Threestate property for a Checkbox as false.How can I achive the same for
a Datagrid column.

myDataColumn = new DataColumn("CoumnName",typeof(bool));
thanks.
-ZS
"Dmitriy Lapshin [C# / .NET MVP]" wrote:
Hi,

Override GetColumnValueAtRow and SetColumnValueAtRow to provide custom
formatting and parsing.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Evan Brown" <ev********@hotmail.com> wrote in message
news:1qMrd.266008$9b.104167@edtnps84...
Hi

I have a Datagrid with a boolean column in it. I currently have it set as
a textboxColumn and not a checkcolumn. what I want to do is have it say
yes/no not true/false. Any suggestions?

Evan Brown


Nov 17 '05 #3

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

Similar topics

2
by: PAUL GROSSMAN | last post by:
Hello everyone. I am working with a DataGrid using VB .Net (Windows Forms). I want to make one of the columns un-editable. I was able to do that by setting the ...
1
by: Dharmen | last post by:
Hey Guys, How can I make the entries of a datagrid column to be a url link? (im using C#) Im just binding the data to the grid from sqlserver using datasource=SqlCommand.ExecuteReader() Please...
1
by: krallabandi | last post by:
Hi How to change any control properties in a datagrid column. Basically, I want to check all controls in a datagrid column, if the particular control is label, I need to chage the properties...
1
by: Adil Bohoudi | last post by:
Hi all, i'm using a datagrid to show somedata retrieved from an sql-server 2000. this datagrid contains two columns a startdate and an enddate column. i used a storedprocedure to get both...
9
by: Roy | last post by:
Hey all, On my html page I have a datagrid with the column: <boundColumn datafield="xyz" visible = false> </boundColumn> In my code behind, within item data bound event, I dynamically set the...
6
by: Aaron Smith | last post by:
Is there a way to put a limit on the text size of a datagrid column? Thanks, Aaron -- --- Aaron Smith Remove -1- to E-Mail me. Spam Sucks.
2
by: Brian Henry | last post by:
say i have a dataset called dv and i have a boolean value i want to filter by "b_DoesWork" while the column name in the data view that i want to filter on is called "Works" how would i filter...
4
by: gane | last post by:
Hi, I am creating datagrid bound column dynamically and need to check if a datagrid column already exists?Is there a way to check this? thanks gane
3
by: mnishani | last post by:
Is there any way to add a default value to a datagrid column(for the whole column - eg : system date) . I'm using vs2003 and datagrid and using dataadapter to update the grid. Thanks in advance
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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.