Alternatively, you can have a GetBoolean method in the code behind that returns a Boolean based on the value, like this:
Public Function GetBoolean(ByVal theValue As Object) As Boolean
Return theValue.ToString().ToLower() = "true"
End Function
This value returns True when you pass in the word True, and False otherwise. You can call it like this:
<asp:CheckBox .... Checked='<%# GetBoolean(Eval("YourColumnName"))%>' .. />
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.