I am creating a form with an editable grid. The grid uses a table BO. One of the variables in the table is stored as a bit in a database. This seems to be pulled through as an int. In order to allow this value to be edited, I am using a dropdown with yes/no options.
For the list options I am using a select statement:-
SELECT CAST('Yes' AS Char(3)) AS Name, CAST(1 AS bit) AS Value
UNION
SELECT CAST('No' AS Char(3)) AS Name, CAST(0 AS bit) AS Value
I am casting the values as bits, as I get an error when submitting the page if I use an int/smallint/text. Everything seems to work, but there is a bug when the form loads. The value in the dropdown appears to be blank, but when I click to edit the dropdown, it automatically selects the correct option as if it has bound properly. I can submit the form before editing the dropdown (when it appers blank) and the value will be correctly saved.
Is this is a known bug? I've been reading around and I cannot find a similar issue.