DataBinding CheckBox in FormView and show as checked/unchecked accordingly
Posted on 2011-02-14
I'd assumed this was straightforward but apparently not:
So firstly how do you databind a CheckBox in a FormView?
My FormView is Databound but I want my CheckBox to display as checked or unchecked based on the data already inserted (so this is my edit view) therefore I need to tell the checkbox which field it's bound to but I can't see how!??
I'm very green in the realms of C# so I feel like I want to use an OnDatabinding event but I get as far as:
protected void ChkBox_Bind(object sender, EventArgs e)
anyone able to help??