473,382 Members | 1,563 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,382 software developers and data experts.

CheckBoxField returning string?

I am using a datagrid and have a column which should consist of
checkboxes. The datafield that generates the checkbox-column is bit,
but I am getting this format error:
System.FormatException: String was not recognized as a valid Boolean.

If I use boundField instead everything works fine, but I want to use
the checkboxes as it seems very odd to make my users type in 0 or 1
manually to decide wether to turn off or on.

Also, I have made a custom update method which uses bool as the input
for the checkbox-variable.

What am I doing wrong?
royend.

Jun 26 '07 #1
0 869

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

Similar topics

1
by: graphicsxp | last post by:
Hi, I have a checkboxfield in my gridview: <asp:CheckBoxField DataField="Analysed" HeaderText ="Analysed"> <ItemStyle width="20px" /> </asp:CheckBoxField> How can I reference the field from...
0
by: dwg1011 | last post by:
I have a detailview with several fields ending with the CheckBoxField shown below: <asp:CheckBoxField DataField="aruExtraFields" HeaderText="Extra Fields?" ReadOnly="false"...
0
by: Gustavo Ringel | last post by:
Hi, I'm trying to get the checked/unchecked of a Gridview CheckBoxField in code. I tried to cast the row cell to a CheckBoxField and it doesn't compiles. I'm also able to get the Text of the...
0
by: Jason Huang | last post by:
Hi, How do I bind data to a GridView in my C#.Net 2.0? Given that in the GridView1 I have 3 BoundFields and 1 CheckBoxField. I can bind the DataSet to the 3 BoundFields if there's no...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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?
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...

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.