scampercat

scampercat

  • NA
  • 189
  • 0

Loading checkbox list

Oct 23 2011 2:46 PM
I am adding a checkboxlist control to a new asp.net 2010 web form page. I want a header to showup on the control. For this to occur, I am thinking of having the first now in the column to be the header row. The checkboxlist control will be loaded with data from the database with code. However to load this first row with 'header' datq, i am wondering how you suggest I code it? Initially would I load the checkbox list control to look like the following before the control is loaded with data dynamically:
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem>cCompany Name</asp:ListItem>
</asp:CheckBoxList>.
If not, what would you suggest I try?
Also, can you tell me any other way you suggest I add a header row to the checkbox list control?

Answers (3)