I have a radgrid with command buttons to edit items or insert new items. When editing items, my edit form template has several checkboxes. I bind the "checked" attribute of these checkboxes to bits in the database to see if they should be checked when the form loads, like so:
This works just fine when editing, but it doesn't work when inserting a new item since it's a new item and there is no database value to bind to. So I found code that lets you specify if it is and insert item or not. The problem is I can't figure out how to do a database bind when using it. I need something like this:
when I try this I get the follwing error:
Error 24 The name 'Bind' does not exist in the current context
I have to believe this is possible, my context is just wrong. Does anyone know what I am doing wrong?