Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Checked List box - datavaluefield (http://www.velocityreviews.com/forums/t771936-checked-list-box-datavaluefield.html)

Richard Roche 12-02-2003 05:25 PM

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.




MSFT 12-03-2003 08:22 AM

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.)



Richard Roche 12-03-2003 03:41 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57