472,143 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

retrieve data in checkbox control from database.

hi i m working on windows application using c#.
i have to retrieve data from database in checkbox control but its giving the following error---cannot convert object to bool.

the code i am typing is

if i m using a flag variable bool a= convert.toboolean(ds.tables[0].rows[0][1]);

then its giving the following error---- string nt recognised as valid boolean
plz help me.
Feb 3 '07 #1
1 1993
4,871 Expert 4TB
This thread may help:
how to check unchek checkboxes using xml
Feb 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by charliewest | last post: by
reply views Thread by AZ Jack | last post: by
6 posts views Thread by Daz | last post: by
reply views Thread by leo001 | last post: by

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.