CheckBox Bound to DataReader column inside DataList

Discussion in 'ASP .Net' started by Bigtoga, Apr 24, 2004.

  1. Bigtoga

    Bigtoga Guest

    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!
     
    Bigtoga, Apr 24, 2004
    #1
    1. Advertising

  2. 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" <>
    >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: <PUvic.1475$>
    >NNTP-Posting-Host: 68.88.67.166
    >X-Complaints-To:
    >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:

    [[PGWWKEZBSHXGZJT_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[QPJN
    >Date: Sat, 24 Apr 2004 15:41:35 GMT
    >Path:

    cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
    ul.t-online.de!t-online.de!news.glorb.com!prodigy.com!prodigy.com!newsmst01a
    .news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr15.news.pro
    digy.com.POSTED!688def4b!not-for-mail
    >Xref: 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

    be
    >a better way (and please don't tell me the better way is to use a DataGrid
    >lol).
    >
    >Anyone have advice?
    >
    >Thanks!
    >
    >
    >
     
    Chee Seong Ong, Apr 28, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John E.
    Replies:
    3
    Views:
    4,485
    masoud bayan
    Mar 25, 2005
  2. =?Utf-8?B?QVNQIERldmVsb3Blcg==?=

    How do you bind a datalist that is inside a bound datalist

    =?Utf-8?B?QVNQIERldmVsb3Blcg==?=, Sep 25, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    587
    =?Utf-8?B?QVNQIERldmVsb3Blcg==?=
    Sep 26, 2006
  3. Replies:
    1
    Views:
    462
  4. Ravichandran Mahalingam

    Bound Column or Template Column (w dAdapater?) in DataGrid

    Ravichandran Mahalingam, Jan 9, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    231
    Ravichandran Mahalingam
    Jan 9, 2004
  5. John E.

    Move bound column to right of dynamic column in datagrid?

    John E., Mar 24, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    240
    Elton Wang
    Mar 28, 2005
Loading...

Share This Page