Help Findcontrol not working with data grid and EditItemTemplate

Discussion in 'ASP .Net Datagrid Control' started by SStory, Apr 24, 2004.

  1. SStory

    SStory Guest

    I have a data grid
    6 columns wide.
    in the 6th column I have a itemtemplate with a text box txtComment

    and in the corresponding edititemtemplate I have txtEditComment

    In the updatecommand I try to use

    e.item.findcontrol("txtEditComment") to get it but it never returns a value
    I think it must not be finding it.

    Any ideas?

    Thanks,

    Shane
    SStory, Apr 24, 2004
    #1
    1. Advertising

  2. SStory

    SStory Guest

    Nevermind it was a postback issue. That is a real killer.

    to avoid it don't rebind data if it is a postback.


    "SStory" <> wrote in message
    news:...
    > I have a data grid
    > 6 columns wide.
    > in the 6th column I have a itemtemplate with a text box txtComment
    >
    > and in the corresponding edititemtemplate I have txtEditComment
    >
    > In the updatecommand I try to use
    >
    > e.item.findcontrol("txtEditComment") to get it but it never returns a

    value
    > I think it must not be finding it.
    >
    > Any ideas?
    >
    > Thanks,
    >
    > Shane
    >
    >
    SStory, Apr 24, 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. Ivan Demkovitch
    Replies:
    1
    Views:
    813
    Ivan Demkovitch
    Oct 7, 2003
  2. Michael Murschell

    Page.FindControl not working on ASCX

    Michael Murschell, Feb 13, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    7,791
  3. tshad

    Findcontrol not working in VB

    tshad, Oct 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    680
    tshad
    Oct 20, 2004
  4. K B
    Replies:
    2
    Views:
    5,063
    otkoth
    Sep 17, 2007
  5. =?Utf-8?B?QnJhZCBSb2JlcnRz?=

    FindControl not working in v2 after conversion from 1.1

    =?Utf-8?B?QnJhZCBSb2JlcnRz?=, Nov 9, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    324
    =?Utf-8?B?QnJhZCBSb2JlcnRz?=
    Nov 13, 2006
Loading...

Share This Page