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

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

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    569
    Alphonse Giambrone
    Jun 28, 2003
  2. Jordan
    Replies:
    2
    Views:
    2,519
    Jordan
    Feb 10, 2004
  3. Daniel Manes

    Code-Behind Pain in the Behind!

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

    Non-code behind to code behind

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

    How to specify attributes from code behind

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

Share This Page