fatihdurgut Posted October 16, 2003 Posted October 16, 2003 Hello I have a dataview, and i want to bind it to controls on a winforms application, but when i tried to bind a varchar2 type field(it includes 1,0) to a checkbox i had an error "String was not recognized as a valid Boolean" Here is my code dv = New DataView(ds.Tables(1)) ChkBoxYDurum.DataBindings.Add("Checked", dv, "STATUS") Quote
*Experts* Nerseus Posted October 18, 2003 *Experts* Posted October 18, 2003 On the Checkbox's DataBindings collection, you can add Format and Parse event handlers. Look at the docs on how to set them up. Essentially, Format translates data coming from a DataSource into a format you want for the control and Parse translates data coming from the control into a format the DataSet wants. -ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.