Display Date Validation as Checkbox in GridView Row
-
Hi, I have a GridView control which is currently bound to an object which contains a DateTime property, "Survey Date". As the GridView width is limited, I want to display a checkbox instead of a DateTime to indicate that the survey has taken place. The survey is deemed to have taken place if a value has been entered for the survey date/time. I can't bind a checkbox property using the DateTime in the GridView row can I? Somehow I'd have to check the DateTime object and if valid, set the checkbox to true and false otherwise. Any ideas welcome! :)
-
Hi, I have a GridView control which is currently bound to an object which contains a DateTime property, "Survey Date". As the GridView width is limited, I want to display a checkbox instead of a DateTime to indicate that the survey has taken place. The survey is deemed to have taken place if a value has been entered for the survey date/time. I can't bind a checkbox property using the DateTime in the GridView row can I? Somehow I'd have to check the DateTime object and if valid, set the checkbox to true and false otherwise. Any ideas welcome! :)
Bind Your check box like this
-
Bind Your check box like this