Miha
Thu May 04 11:52:47 CDT 2006
Can you create a simple sample that reproduces the problem?
--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
"Jay Balapa" <jbalapa@hotmail.com> wrote in message
news:e29qFd4bGHA.3348@TK2MSFTNGP03.phx.gbl...
> Hi Miha,
>
> Thanks for replying.
>
> myColumn is just an iterator for a row.
>
> foreach (DataColumn myColumn from myTable.Columns)
>
> Thanks.
> jay
>
> "Miha Markic [MVP C#]" <miha at rthand com> wrote in message
> news:ugSGME1bGHA.4108@TK2MSFTNGP03.phx.gbl...
>> Hi Jay,
>>
>> That code should work.
>> What is the myColumn type exactly?
>>
>> --
>> Miha Markic [MVP C#]
>> RightHand .NET consulting & development www.rthand.com
>> Blog:
http://cs.rthand.com/blogs/blog_with_righthand/
>>
>> "Jay Balapa" <jbalapa@hotmail.com> wrote in message
>> news:OdPENEvbGHA.1208@TK2MSFTNGP02.phx.gbl...
>>> Hello,
>>>
>>> Iam trying to do the following-
>>>
>>> if(myColumn.DataType==typeof(bool))
>>> {
>>> }
>>>
>>> I get the error "Operator == cannot be applied to operands type and
>>> object and bool."
>>>
>>> Is there a workaround?
>>>
>>> Thanks.
>>> jay
>>>
>>>
>>>
>>>
>>
>>
>
>