how to specify data binding in code behind

Discussion in 'ASP .Net Datagrid Control' started by alexis.rzewski@gmail.com, Mar 29, 2006.

  1. Guest

    I would like to do without the HTML Text='<%#
    DataBinder.Eval(Container.DataItem, "Count") %>'

    and specify the data binding in C# or VB code. Is there a way to do
    this ?
     
    , Mar 29, 2006
    #1
    1. Advertisements

  2. You can always handle ItemDataBound event, where you get the dataitems, read
    the values from the dataitems and do with them whatever you want.

    Eliyahu

    <> wrote in message
    news:...
    >I would like to do without the HTML Text='<%#
    > DataBinder.Eval(Container.DataItem, "Count") %>'
    >
    > and specify the data binding in C# or VB code. Is there a way to do
    > this ?
    >
     
    Eliyahu Goldin, Mar 30, 2006
    #2
    1. Advertisements

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. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    826
    Alphonse Giambrone
    Jun 28, 2003
  2. Jordan
    Replies:
    2
    Views:
    2,741
    Jordan
    Feb 10, 2004
  3. =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=

    Fire Code behind code AND Javascript code associated to a Button Click Event

    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=, Feb 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    21,759
    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
    Feb 11, 2004
  4. Daniel Manes

    Code-Behind Pain in the Behind!

    Daniel Manes, Jun 10, 2005, in forum: ASP .Net
    Replies:
    11
    Views:
    943
  5. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    718
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
  6. K Viltersten

    How to specify attributes from code behind

    K Viltersten, Aug 7, 2009, in forum: ASP .Net
    Replies:
    5
    Views:
    444
    Gregory A. Beamer
    Aug 7, 2009
  7. A. Atienza

    Passing code/data from code-behind to ASPX page

    A. Atienza, Dec 8, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    432
    Eliyahu Goldin
    Dec 8, 2004
  8. aratienza

    Passing data/code from code-behind to aspx

    aratienza, Dec 8, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    202
    haile
    Dec 10, 2004
Loading...