Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Getting a Bool from a DataRowView

Getting a Bool from a DataRowView

Getting a Bool from a DataRowView

I have looked at so much stuff on datarowveiws but they all assume you are getting text or integer data from their elements.  I cannot find anything on how to get a boolean value from an element in a  datarowview.

Using VS 2008  .Net 3.5 target.

Here is my code that wont even compile because it says I cannot covert and object to a bool on the last row.

            DataRowView actntyperow;
            DataRowView actntitlerow;

            actntyperow = (DataRowView) this.actionTypesBindingNavigator.BindingSource.Current;
            this.actionControl1.ActnTyp = actntyperow["ActionType"].ToString();
            actionTitlesbindingSource.Filter = "ActionType = '" + actntyperow["ActionType"].ToString() + "'";
            actntitlerow = (DataRowView) this.actionTypesBindingNavigator.BindingSource.Current;
            this.actionControl1.NA = actntitlerow["NA"];

And since it is the end of the day and I am brainfried it is probably something obvious that I should already know.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close