Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1005
Checkbox list in RowEditTemplate
posted

Can you please show how to code for a checkbox list in a RowEditTemplate...I'm using a Sql data source to populate checkbox list. Thx!

Parents
No Data
Reply
  • 33839
    posted

    Hi davefevold,

    Are you trying to use a checkbox list for one column?  To choose among multiple items and then have them concactenated with a comma?  One option would be to use a WebDropDown.  You could turn on checkbox selection to accomplish this.  If you do want this, there is no default code for it in the grid.  You would have to code it yourself.  You'd need a function that takes in the value, splits it, and then checks the appropriate checkboxes.  And going back, you'd need to iterate through the checkboxes to build the string to give to the grid.

    regards,
    David Young 

Children