Ask a Question related to ASP.NET General, Design and Development.
-
Ignacio Machin #1
Re: Convert DataRow content to bool
Hi
Have you tried (bool)dr["field"] ?
If field is of type bool it should be ok.
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Beza" <beza@beza.com> wrote in message
news:urv3P5HRDHA.2332@TK2MSFTNGP10.phx.gbl...> How do I convert a value stored in a DataRow to bool data type?
>
> I've tried dr["field"].ToBoolean() but it says "object does not contain a
> definition for ToBoolean.
>
> Any ideas?
>
>
Ignacio Machin Guest
-
Creating Datarow
I can add a datacolumn to a datarow at any time. How can I add a datarow to a table in a dataset? -
when convert the excel file to pdf,the content is some black boxes???
open a excel document in excel2003 pro application,and using the acrobat6 pro to convert it to pdf file(using the default conversion settings),but... -
DataRow
hello all, are the datarow index mantained when DataTable is sorted by clicking on the column header? that is .. if the first row is index 1,... -
Using Datarow, how do I get the data out of each
column in the current row? For example, I have a datagrid filled up with a database and the user clicks on the edit button. I want to go to another... -
DataRow, WebService question
I am writing a WindowsForms based application that uses WebServices to add records to a SQL Server database, and later query those, and other... -
Eliyahu Goldin #2
Re: Convert DataRow content to bool
System.Convert.ToBoolean (dr["field"]) or
System.Convert.ToBoolean (dr["field"].ToString())
HTH,
Eliyahu
"Beza" <beza@beza.com> wrote in message
news:urv3P5HRDHA.2332@TK2MSFTNGP10.phx.gbl...> How do I convert a value stored in a DataRow to bool data type?
>
> I've tried dr["field"].ToBoolean() but it says "object does not contain a
> definition for ToBoolean.
>
> Any ideas?
>
>
Eliyahu Goldin Guest



Reply With Quote

