468,765 Members | 1,066 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

CheckBox Bound to DataReader column inside DataList

Okay - I'm going crazy here trying to figure out how to do this - here goes:

I have a DataList populated by a DataReader. In the DataReader, a column is
present called "IsInCategory". I want to have a checkbox bound to that
column (bit in SQL Server).

I have tried everything and can't see a way to do this without createing an
event handler for DataBind() of the CheckBox control. Surely there has to be
a better way (and please don't tell me the better way is to use a DataGrid
lol).

Anyone have advice?

Thanks!
Nov 18 '05 #1
1 2045
I think template can solve your problem.

Read "Creating Templates in the Web Forms Designer" in the Visual Studio
.Net 2003 Help document.

--------------------------------------------------------------------
This reply is provided AS IS, without warranty (express or implied).
--------------------
From: "Bigtoga" <bi*****@maratrane.com>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: CheckBox Bound to DataReader column inside DataList
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.132
Message-ID: <PU****************@newssvr15.news.prodigy.com>
NNTP-Posting-Host: 68.88.67.166
X-Complaints-To: ab***@prodigy.net
X-Trace: newssvr15.news.prodigy.com 1082821295 ST000 68.88.67.166 (Sat, 24 Apr 2004 11:41:35 EDT)NNTP-Posting-Date: Sat, 24 Apr 2004 11:41:35 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: [[PGWWKEZBS[S]HXGZJT_V@AUSXB@DTMNHWB_EYLJZ]BGIELNVUEAE[YETZPIWWI[FCIZA^NBFXZ
_D[BFNTCNVPDTNTKHWXKB@X^B_OCJLPZ@ET_O[G\XSG@E\G[ZKVLBL^CJINM@I_KVIOR\T_M_AW_
M[_BWU_HFA_]@A_A^SGFAUDE_DFTMQPFWVW[QPJNDate: Sat, 24 Apr 2004 15:41:35 GMT
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news.glorb.com!prodigy.com!prodigy.com!n ewsmst01a
.news.prodigy.com!prodigy.com!postmaster.news.prod igy.com!newssvr15.news.pro
digy.com.POSTED!688def4b!not-for-mailXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.aspnet:228734
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Okay - I'm going crazy here trying to figure out how to do this - here goes:
I have a DataList populated by a DataReader. In the DataReader, a column is
present called "IsInCategory". I want to have a checkbox bound to that
column (bit in SQL Server).

I have tried everything and can't see a way to do this without createing an
event handler for DataBind() of the CheckBox control. Surely there has to bea better way (and please don't tell me the better way is to use a DataGrid
lol).

Anyone have advice?

Thanks!


Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Sebi | last post: by
reply views Thread by VbScripter | last post: by
1 post views Thread by Glenn Owens | last post: by
10 posts views Thread by Jennyfer J Barco | last post: by
2 posts views Thread by Derek | last post: by
2 posts views Thread by mschmidt18 | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.