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
checkbox1.checked=convert.toboolean(ds.tables[0].rows[0][1]);
if i m using a flag variable bool a= convert.toboolean(ds.tables[0].rows[0][1]);
if(a==true)
checkbox1.checked=true)
then its giving the following error---- string nt recognised as valid boolean
plz help me.