E
Eric A. Miller
I have a checkbox that is bound to a database column. The values in the
database column are either 'Y' or 'N'. I'm having trouble figuring out how
to write the Bind method to convert the 'Y' or 'N' to a boolean so it can be
assigned to the Checked property of the checkbox. Two-way binding is
required for the checkbox and it is a template column in the
EditItemTemplate.
I've tried: Bind("column_name" == 'Y' ? true : false) with no success.
Any ideas?
Thank you.
Eric
database column are either 'Y' or 'N'. I'm having trouble figuring out how
to write the Bind method to convert the 'Y' or 'N' to a boolean so it can be
assigned to the Checked property of the checkbox. Two-way binding is
required for the checkbox and it is a template column in the
EditItemTemplate.
I've tried: Bind("column_name" == 'Y' ? true : false) with no success.
Any ideas?
Thank you.
Eric