![]() |
Checked List box - datavaluefield
How can i set the checked/not checked value of a
checklistbox from a dataset/datareader? I tried assigning the 'datavaluefield' but the checked values are never set. I'm using a bit field in sql server. thanks. |
RE: Checked List box - datavaluefield
Hi Richard,
Checklistbox doesn't support bindind to its checkbox value. I think you may use a repeater control instead. For exmaple: <asp:Repeater id="Repeater1" runat="server" DataSource="<%# DataSet21 %>" DataMember="Table6"> <itemtemplate> <asp:CheckBox Runat =server Checked =<%# DataBinder.Eval(Container.DataItem, "check") %> ></asp:CheckBox> <%# DataBinder.Eval(Container.DataItem, "name") %><br> </itemtemplate> </asp:Repeater> Luke Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) |
RE: Checked List box - datavaluefield
Thank you, i appreciate it.
|
| All times are GMT. The time now is 06:14 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.