how to get back the value from item template

Discussion in 'ASP .Net Datagrid Control' started by man, Apr 5, 2005.

  1. man

    man Guest

    Hi

    I want to ask how can I get the value index and text value from the template
    column.
    I am using C# as code behind language and I want to get back the value from
    user selected for "Edit"/"Delete" Button"

    The template such as below:

    <ItemTemplate>
    <table>
    <tr><td><%# ((DataRowView)Container.DataItem)["Column1"] %></td></tr>
    <tr><td><%# ((DataRowView)Container.DataItem)["Column2"] %></td></tr>
    <tr><td><%# ((DataRowView)Container.DataItem)["Column3"] %></td></tr>
    </table>
    </ItemTemplate>
    man, Apr 5, 2005
    #1
    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. =?Utf-8?B?YWRvbGYgZ2FybGlj?=

    How to pass Application.Item value back to class?

    =?Utf-8?B?YWRvbGYgZ2FybGlj?=, Nov 11, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    2,250
    Scott Allen
    Nov 11, 2004
  2. Julius Fenata

    Change item-template value format...

    Julius Fenata, Apr 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    4,517
    MattC
    Apr 8, 2005
  3. Michael Wendel
    Replies:
    2
    Views:
    992
    Michael Wendel
    Sep 6, 2005
  4. Johannes Zellner
    Replies:
    1
    Views:
    501
    Alex Martelli
    Jan 17, 2006
  5. QUASAR
    Replies:
    6
    Views:
    420
    QUASAR
    Jan 17, 2004
Loading...

Share This Page