2

How do I make a CheckBoxList in ASP.NET which looks like this?:

Desired CheckBoxList

When a List Item is selected I would need the values from both columns. Thanks in advance!

3
  • 2
    Use a GridView with CheckBoxField instead Commented Oct 30, 2013 at 17:19
  • 1
    A repeater is probably more appropriate for this. It has the least amount of overhead. The other option would be to have a listview but seeing as you don't need paging etc .... a repeater would be the most appropriate choice. Commented Oct 30, 2013 at 17:43
  • @YuriyGalanter: GridView works perfectly! Please post it as an answer, so I can give you credit. Thanks! Commented Nov 1, 2013 at 14:43

1 Answer 1

2

Since you're presenting multiple columns, a GridView control is a better alternative to CheckBoxList.

It contains a CheckBoxField column type that renders as column of checkboxes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.